This is useful when cross-compiling libc to another target in which case we first need to compile libc-hdrgen for host. We rely on the existing LLVM CMake infrastructure for that. Differential Revision: https://reviews.llvm.org/D95205
19 lines
390 B
CMake
19 lines
390 B
CMake
set(LLVM_LINK_COMPONENTS Support)
|
|
|
|
add_tablegen(libc-hdrgen LIBC
|
|
Command.h
|
|
Command.cpp
|
|
Generator.cpp
|
|
Generator.h
|
|
IncludeFileCommand.cpp
|
|
IncludeFileCommand.h
|
|
Main.cpp
|
|
PublicAPICommand.cpp
|
|
PublicAPICommand.h
|
|
)
|
|
|
|
target_include_directories(libc-hdrgen PRIVATE ${LIBC_SOURCE_DIR})
|
|
target_link_libraries(libc-hdrgen PRIVATE LibcTableGenUtil)
|
|
|
|
add_subdirectory(PrototypeTestGen)
|