[llvm] r260457 - [CMake] Add a macro definition to detect if we are building GlobalISel:
Quentin Colombet via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 10 15:00:57 PST 2016
Author: qcolombet
Date: Wed Feb 10 17:00:57 2016
New Revision: 260457
URL: http://llvm.org/viewvc/llvm-project?rev=260457&view=rev
Log:
[CMake] Add a macro definition to detect if we are building GlobalISel:
LLVM_BUILD_GLOBAL_ISEL
Modified:
llvm/trunk/CMakeLists.txt
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=260457&r1=260456&r2=260457&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Wed Feb 10 17:00:57 2016
@@ -69,6 +69,9 @@ if(LLVM_PARALLEL_COMPILE_JOBS)
endif()
set(LLVM_BUILD_GLOBAL_ISEL OFF CACHE BOOL "Experimental: Build GlobalISel")
+if(LLVM_BUILD_GLOBAL_ISEL)
+ add_definitions(-DLLVM_BUILD_GLOBAL_ISEL)
+endif()
set(LLVM_PARALLEL_LINK_JOBS "" CACHE STRING
"Define the maximum number of concurrent link jobs.")
More information about the llvm-commits
mailing list