mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-16 06:48:31 +02:00
amd/llvm: fix build with LLVM 18
Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25388>
This commit is contained in:
parent
6060b656f8
commit
f79617fe80
1 changed files with 4 additions and 0 deletions
|
|
@ -366,7 +366,11 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,
|
|||
builder.setEngineKind(EngineKind::JIT)
|
||||
.setErrorStr(&Error)
|
||||
.setTargetOptions(options)
|
||||
#if LLVM_VERSION_MAJOR >= 18
|
||||
.setOptLevel((CodeGenOptLevel)OptLevel);
|
||||
#else
|
||||
.setOptLevel((CodeGenOpt::Level)OptLevel);
|
||||
#endif
|
||||
|
||||
#if DETECT_OS_WINDOWS
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue