Skip to content

Commit

Permalink
[CMake] Fixing clang standalone build
Browse files Browse the repository at this point in the history
I broke this in r288770.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288829 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Chris Bieneman committed Dec 6, 2016
1 parent 057100d commit 461b461
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions cmake/modules/TableGen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 461b461

Please sign in to comment.