[Mesa-dev] [Bug 100218] Handle -g passed as a compile option

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Mar 15 17:47:49 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=100218

            Bug ID: 100218
           Summary: Handle -g passed as a compile option
           Product: Mesa
           Version: git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: vedran at miletic.net
        QA Contact: mesa-dev at lists.freedesktop.org

Clover uses clang::CompilerInvocation::CreateFromArgs() which is roughly
equivalent to clang -cc1 frontend and does not support GCC-like options,
including -g, which is sometimes passed by OpenCL programs. Section 5.6.3 of
OpenCL 1.1 spec [1] says: "This specification defines a standard set of options
that must be supported by an OpenCL compiler when building program executables
online or offline.  These may be extended by a set of vendor-or
platform-specific options."

Since -g is not mentioned in the spec, we can either:
1) Fail with "Clover does not support -g", which is what we do now but could be
made more explicit.
2) Ignore it, that is s/-g//.
3) Figure out how to enable it and then s/-g/-whatever/ before passing it to
clang.

[1] https://www.khronos.org/registry/OpenCL/specs/opencl-1.1.pdf

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170315/ecede097/attachment.html>


More information about the mesa-dev mailing list