clc: llvm 17 requires opaque pointers.

You can't turn this off for llvm17+, this at least makes things
run against llvm git now instead of blowing up in clang.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24000>
This commit is contained in:
Dave Airlie
2023-07-05 14:01:05 +10:00
committed by Marge Bot
parent b392d3ac27
commit fb5ecbb4fe

View File

@@ -783,7 +783,7 @@ clc_compile_to_llvm_module(LLVMContext &llvm_ctx,
#else
"-finclude-default-header",
#endif
#if LLVM_VERSION_MAJOR >= 15
#if LLVM_VERSION_MAJOR >= 15 && LLVM_VERSION_MAJOR < 17
"-no-opaque-pointers",
#endif
// Add a default CL compiler version. Clang will pick the last one specified