mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 04:50:11 +01:00
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:
parent
49fe060b5f
commit
22fa315ee0
1 changed files with 4 additions and 0 deletions
|
|
@ -775,7 +775,11 @@ clc_compile_to_llvm_module(LLVMContext &llvm_ctx,
|
||||||
&c->getDiagnosticOpts())
|
&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";
|
const char *triple = args->address_bits == 32 ? "spir-unknown-unknown" : "spir64-unknown-unknown";
|
||||||
|
#endif
|
||||||
|
|
||||||
std::vector<const char *> clang_opts = {
|
std::vector<const char *> clang_opts = {
|
||||||
args->source.name,
|
args->source.name,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue