[llvm] r288829 - [CMake] Fixing clang standalone build
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 6 09:09:29 PST 2016
Author: cbieneman
Date: Tue Dec 6 11:09:29 2016
New Revision: 288829
URL: http://llvm.org/viewvc/llvm-project?rev=288829&view=rev
Log:
[CMake] Fixing clang standalone build
I broke this in r288770.
Modified:
llvm/trunk/CMakeLists.txt
llvm/trunk/cmake/modules/TableGen.cmake
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=288829&r1=288828&r2=288829&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Tue Dec 6 11:09:29 2016
@@ -803,8 +803,6 @@ endif()
include(AddLLVM)
include(TableGen)
-set(LLVM_TABLEGEN_FLAGS -I ${LLVM_MAIN_INCLUDE_DIR})
-
if( MINGW )
# People report that -O3 is unreliable on MinGW. The traditional
# build also uses -O2 for that reason:
Modified: llvm/trunk/cmake/modules/TableGen.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/TableGen.cmake?rev=288829&r1=288828&r2=288829&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/TableGen.cmake (original)
+++ llvm/trunk/cmake/modules/TableGen.cmake Tue Dec 6 11:09:29 2016
@@ -4,6 +4,10 @@
include(LLVMExternalProjectUtils)
+if(LLVM_MAIN_INCLUDE_DIR)
+ set(LLVM_TABLEGEN_FLAGS -I ${LLVM_MAIN_INCLUDE_DIR})
+endif()
+
function(tablegen project ofn)
# Validate calling context.
if(NOT ${project}_TABLEGEN_EXE)
More information about the llvm-commits
mailing list