ac: replace HAVE_LLVM with LLVM_VERSION_MAJOR for atomic-optimizations

trivial
This commit is contained in:
Marek Olšák 2019-09-11 10:56:07 -04:00
parent 32ea4c2c5e
commit 1bb2656276
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ static void ac_init_llvm_target()
"mesa",
"-simplifycfg-sink-common=false",
"-global-isel-abort=2",
#if HAVE_LLVM >= 0x1000
#if LLVM_VERSION_MAJOR >= 10
/* Atomic optimizations require LLVM 10.0 for gfx10 support. */
"-amdgpu-atomic-optimizations=true",
#endif