Simplify logic for build with old toolchain
Setting LLVM_FORCE_USE_OLD_TOOLCHAIN will skip all checks in interpreter/llvm/src/cmake/modules/CheckCompilerVersion.cmake, which is what we want.
This commit is contained in:
parent
ef943ddcfa
commit
833c1c1b75
@ -43,9 +43,9 @@ if (Clang_DIR)
|
||||
list(APPEND _clad_extra_cmake_args -DClang_DIR=${Clang_DIR} -DClang_CONFIG_EXTRA_PATH_HINTS=${Clang_Config_ExtraPathHints})
|
||||
endif(Clang_DIR)
|
||||
|
||||
if (LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN)
|
||||
list(APPEND _clad_extra_cmake_args -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=${LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN})
|
||||
endif(LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN)
|
||||
if (LLVM_FORCE_USE_OLD_TOOLCHAIN)
|
||||
list(APPEND _clad_extra_cmake_args -DLLVM_FORCE_USE_OLD_TOOLCHAIN=${LLVM_FORCE_USE_OLD_TOOLCHAIN})
|
||||
endif(LLVM_FORCE_USE_OLD_TOOLCHAIN)
|
||||
|
||||
if (CLING_INCLUDE_TESTS)
|
||||
list(APPEND _clad_extra_cmake_args -DLLVM_EXTERNAL_LIT=${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py)
|
||||
|
Loading…
Reference in New Issue
Block a user