1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

[CMake] Fixing clang standalone build

I broke this in r288770.

llvm-svn: 288829
This commit is contained in:
Chris Bieneman 2016-12-06 17:09:29 +00:00
parent bca2296134
commit c02aeaa9b8
2 changed files with 4 additions and 2 deletions

View File

@ -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:

View File

@ -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)