clc: use spirv triple starting with llvm-17
It's supported since a while and shouldn't regress anything. Signed-off-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26955>
This commit is contained in:
@@ -775,7 +775,11 @@ clc_compile_to_llvm_module(LLVMContext &llvm_ctx,
|
||||
&c->getDiagnosticOpts())
|
||||
};
|
||||
|
||||
#if LLVM_VERSION_MAJOR >= 17
|
||||
const char *triple = args->address_bits == 32 ? "spirv-unknown-unknown" : "spirv64-unknown-unknown";
|
||||
#else
|
||||
const char *triple = args->address_bits == 32 ? "spir-unknown-unknown" : "spir64-unknown-unknown";
|
||||
#endif
|
||||
|
||||
std::vector<const char *> clang_opts = {
|
||||
args->source.name,
|
||||
|
Reference in New Issue
Block a user