[llvm-config][GlobalISel] Canonicalize LLVM_HAS_GLOBAL_ISEL on ON/OFF.
authorQuentin Colombet <qcolombet@apple.com>
Thu, 21 Jul 2016 17:26:47 +0000 (17:26 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Thu, 21 Jul 2016 17:26:47 +0000 (17:26 +0000)
commita4bcc3f069861f85365bb9076629940cff8d018f
treeb5b1d84f7fced37a81670e9ee6d51bde20584698
parentc8df88c9b5de8ba52da02d8f68cc96a83eb09263
[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.

llvm-svn: 276307
llvm/tools/llvm-config/CMakeLists.txt