[Mesa-dev] [PATCH] clover: fix building fix clang-3.8
Aaron Watry
awatry at gmail.com
Wed Oct 28 11:21:38 PDT 2015
Fixes the build for me here, and cl-program-tester from piglit seems to
work just fine for the few tests I just ran.
--Aaron
On Wed, Oct 28, 2015 at 9:47 AM, Laurent Carlier <lordheavym at gmail.com>
wrote:
> https://bugs.freedesktop.org/show_bug.cgi?id=92705
>
> v2.1: use Linker::Flags::None instead of 0 and emplace_back()
>
> Signed-off-by: Laurent Carlier <lordheavym at gmail.com>
> ---
> src/gallium/state_trackers/clover/llvm/invocation.cpp | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp
> b/src/gallium/state_trackers/clover/llvm/invocation.cpp
> index d74b50d..a36dbd6 100644
> --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
> +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
> @@ -247,8 +247,12 @@ namespace {
> // attribute. This attribute will prevent Clang from creating
> // illegal uses of barrier() (e.g. Moving barrier() inside a
> conditional
> // that is no executed by all threads) during its optimizaton
> passes.
> +#if HAVE_LLVM >= 0x0308
> +
> c.getCodeGenOpts().LinkBitcodeFiles.emplace_back(llvm::Linker::Flags::None,
> + libclc_path);
> +#else
> c.getCodeGenOpts().LinkBitcodeFile = libclc_path;
> -
> +#endif
> optimization_level = c.getCodeGenOpts().OptimizationLevel;
>
> // Compile the code
> --
> 2.6.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151028/aba6fd28/attachment.html>
More information about the mesa-dev
mailing list