From fb5ecbb4fe9d9f58afee341116def699f3bb8341 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 5 Jul 2023 14:01:05 +1000 Subject: [PATCH] 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 Reviewed-by: Jesse Natalie Part-of: --- src/compiler/clc/clc_helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/clc/clc_helpers.cpp b/src/compiler/clc/clc_helpers.cpp index b144302476d..65acb717f5a 100644 --- a/src/compiler/clc/clc_helpers.cpp +++ b/src/compiler/clc/clc_helpers.cpp @@ -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