File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
include (TableGen )
2
2
3
- set (LLVM_LINK_COMPONENTS Support )
3
+ if (NOT LLVM_LINK_LLVM_DYLIB )
4
+ set (LLVM_LINK_COMPONENTS Support )
5
+ endif ()
4
6
5
7
add_tablegen (libc-hdrgen LIBC
6
8
Command .h
Original file line number Diff line number Diff line change
1
+ if (NOT LLVM_LINK_LLVM_DYLIB )
2
+ set (flags "DISABLE_LLVM_LINK_LLVM_DYLIB;LINK_COMPONENTS;Support;TableGen" )
3
+ else ()
4
+ set (flags "LINK_COMPONENTS;TableGen" )
5
+ endif ()
1
6
add_llvm_library (
2
7
LibcTableGenUtil
3
8
APIIndexer.cpp
4
9
APIIndexer.h
5
- DISABLE_LLVM_LINK_LLVM_DYLIB
6
- LINK_COMPONENTS Support TableGen
10
+ ${flags}
7
11
)
8
12
target_include_directories (LibcTableGenUtil PUBLIC ${LIBC_SOURCE_DIR} )
9
13
target_include_directories (LibcTableGenUtil PRIVATE ${LLVM_INCLUDE_DIR} ${LLVM_MAIN_INCLUDE_DIR} )
You can’t perform that action at this time.
0 commit comments