summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-12-06 17:09:29 +0000
committerChris Bieneman <beanz@apple.com>2016-12-06 17:09:29 +0000
commitec758fad08fcbce80ffe8f2a5568d91199d97343 (patch)
treeb4a7c4cd49c51af97d14eabbc2a352573d3570d2 /llvm
parent36610871110089d9ab68449d4002f2d289aae050 (diff)
downloadbcm5719-llvm-ec758fad08fcbce80ffe8f2a5568d91199d97343.tar.gz
bcm5719-llvm-ec758fad08fcbce80ffe8f2a5568d91199d97343.zip
[CMake] Fixing clang standalone build
I broke this in r288770. llvm-svn: 288829
Diffstat (limited to 'llvm')
-rw-r--r--llvm/CMakeLists.txt2
-rw-r--r--llvm/cmake/modules/TableGen.cmake4
2 files changed, 4 insertions, 2 deletions
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index 08008f9f227..f209338e2c1 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -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:
diff --git a/llvm/cmake/modules/TableGen.cmake b/llvm/cmake/modules/TableGen.cmake
index f966cf2d615..9682002c2ab 100644
--- a/llvm/cmake/modules/TableGen.cmake
+++ b/llvm/cmake/modules/TableGen.cmake
@@ -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)
OpenPOWER on IntegriCloud