Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Unified Diff: CMakeLists.txt

Issue 1084753002: Add some configure/CMake options for enabling/disabling Subzero targets. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: line up better Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Makefile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: CMakeLists.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e6b08d00d251b146e8e862bc2d65f8fca2a08fc0..b4dc377a108f107c64dd149f1b77f46a770e5903 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -225,6 +225,13 @@ option(LLVM_ENABLE_THREADS "Use threads if available." ON)
option(LLVM_ENABLE_ZLIB "Use zlib for compression/decompression if available." ON)
+set(SUBZERO_TARGETS_TO_BUILD "none"
+ CACHE STRING "Semicolon-separated list of targets to build, or \"none\".")
+
+if( SUBZERO_TARGETS_TO_BUILD STREQUAL "none" )
+ set( SUBZERO_TARGETS_TO_BUILD "" )
+endif()
+
if( LLVM_TARGETS_TO_BUILD STREQUAL "all" )
set( LLVM_TARGETS_TO_BUILD ${LLVM_ALL_TARGETS} )
endif()
@@ -457,6 +464,11 @@ foreach(t ${LLVM_TARGETS_TO_BUILD})
endif()
endforeach(t)
+set(SUBZERO_ENUM_TARGETS "")
+foreach(t ${SUBZERO_TARGETS_TO_BUILD})
+ set(SUBZERO_ENUM_TARGETS "${SUBZERO_ENUM_TARGETS}SUBZERO_TARGET(${t})\n")
+endforeach(t)
+
# Produce the target definition files, which provide a way for clients to easily
# include various classes of targets.
configure_file(
@@ -472,6 +484,10 @@ configure_file(
${LLVM_INCLUDE_DIR}/llvm/Config/Disassemblers.def
)
configure_file(
+ ${LLVM_MAIN_INCLUDE_DIR}/llvm/Config/SZTargets.def.in
+ ${LLVM_INCLUDE_DIR}/llvm/Config/SZTargets.def
+ )
+configure_file(
${LLVM_MAIN_INCLUDE_DIR}/llvm/Config/Targets.def.in
${LLVM_INCLUDE_DIR}/llvm/Config/Targets.def
)
« no previous file with comments | « no previous file | Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698