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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Mar 22 16:34:38 UTC 2017


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

--- Comment #1 from Aaron Watry <awatry at gmail.com> ---
Just thought I'd chime in here.

I don't necessary try to use '-g' when compiling cl kernels/programs in clover,
but I have been poking at getting some programs working that relying on the
CL1.2 'static' keyword...

I had been trying to enable that at one point by setting
CLOVER_EXTRA_BUILD_OPTIONS to include "-Dcl_clang_storage_class_specifiers", as
I found that manually invoking clang with that define set allowed me to build
some of the kernels I was working with (e.g. blender cycles, along with some
stuff from hcc and others).

But no matter what I set, including specifying -cl-std=1.2 (after bumping the
supported version in [platform|device].cpp, it always seemed like the clang
invocation was ignoring all of the indicated build options.

We may end up having to do number 3 anyway, as I feel like we're losing the
user-specified compiler arguments somehow.

But there's always the possibility that I'm doing it wrong, so take this with a
grain of salt.

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


More information about the mesa-dev mailing list