llvm.org GIT mirror llvm / b6237e4
[llvm-config][GlobalISel] Canonicalize LLVM_HAS_GLOBAL_ISEL on ON/OFF. Previously LLVM_HAS_GLOBAL_ISEL would directly get the value of LLVM_BUILD_GLOBAL_ISEL. This could be any integer value and not just ON and OFF. The problem is that lit.cfg was checking for ON to define that global-isel was supported, thus if we were setting LLVM_BUILD_GLOBAL_ISEL with an integer value, say 1, this test would fail whereas we do build global-isel and want to test it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276307 91177308-0d34-0410-b5e6-96231b3b80d8 Quentin Colombet 3 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3636 set(LLVM_BUILD_SYSTEM cmake)
3737 set(LLVM_HAS_RTTI ${LLVM_CONFIG_HAS_RTTI})
3838 set(LLVM_DYLIB_VERSION "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}${LLVM_VERSION_SUFFIX}")
39 set(LLVM_HAS_GLOBAL_ISEL "${LLVM_BUILD_GLOBAL_ISEL}")
39 if(LLVM_BUILD_GLOBAL_ISEL)
40 set(LLVM_HAS_GLOBAL_ISEL "ON")
41 else()
42 set(LLVM_HAS_GLOBAL_ISEL "OFF")
43 endif()
4044
4145 # Use the C++ link flags, since they should be a superset of C link flags.
4246 set(LLVM_LDFLAGS "${CMAKE_CXX_LINK_FLAGS}")