[Mesa-dev] [Bug 111523] Clover - radeonsi: Mesa git - broken compilation with current LLVM 10.0.0

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Aug 31 19:28:20 UTC 2019


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

--- Comment #1 from Aaron Watry <awatry at gmail.com> ---
In theory, the following should be enough to get things going again, but it'd
need to be wrapped in some logic to do clang version detection to keep the
older versions working:

diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp
b/src/gallium/state_trackers/clover/llvm/invocation.cpp
index 0a677ce2eaa..0ce3e970303 100644
--- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
+++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
@@ -200,7 +200,7 @@ namespace {
       const std::string &device_clc_version = dev.device_clc_version();

       if (!clang::CompilerInvocation::CreateFromArgs(
-             c->getInvocation(), copts.data(), copts.data() + copts.size(),
diag))
+             c->getInvocation(), copts, diag))
          throw invalid_build_options_error();

       diag_buffer->FlushDiagnostics(diag);


Haven't tested it yet though beyond just building and running clinfo.

-- 
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/20190831/06d6efb8/attachment.html>


More information about the mesa-dev mailing list