[PATCH] D27135: [CMAKE] fix LLVM_OPTIMIZED_TABLEGEN for Visual Studio
Daniil Fukalov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 28 07:10:26 PST 2016
dfukalov updated the summary for this revision.
dfukalov updated this revision to Diff 79400.
dfukalov added a comment.
refined with Chris suggestion
https://reviews.llvm.org/D27135
Files:
CMakeLists.txt
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -529,7 +529,7 @@
option(LLVM_BUILD_LLVM_DYLIB "Build libllvm dynamic library" ${LLVM_BUILD_LLVM_DYLIB_default})
option(LLVM_OPTIMIZED_TABLEGEN "Force TableGen to be built with optimization" OFF)
-if(CMAKE_CROSSCOMPILING OR (LLVM_OPTIMIZED_TABLEGEN AND LLVM_ENABLE_ASSERTIONS))
+if(CMAKE_CROSSCOMPILING OR (LLVM_OPTIMIZED_TABLEGEN AND (LLVM_ENABLE_ASSERTIONS OR CMAKE_CONFIGURATION_TYPES)))
set(LLVM_USE_HOST_TOOLS ON)
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27135.79400.patch
Type: text/x-patch
Size: 567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161128/c6efd17b/attachment.bin>
More information about the llvm-commits
mailing list