Files
swift-mirror/cmake/modules/AddSwiftTableGen.cmake
Chris Bieneman 93717c663c Rename SWIFT_TABLEGEN to LLVM_TABLEGEN
Swift doesn't produce its own tablegen and by faking out the LLVM CMake infrastructure into thinking it does all of LLVM's build cross compilation support breaks.
2017-07-25 14:14:56 -07:00

14 lines
414 B
CMake

include(TableGen)
# This needs to be a macro since tablegen (which is a function) needs to set
# variables in its parent scope.
macro(swift_tablegen)
tablegen(LLVM ${ARGN})
endmacro()
# This needs to be a macro since add_public_tablegen_target (which is a
# function) needs to set variables in its parent scope.
macro(swift_add_public_tablegen_target target)
add_public_tablegen_target(${target})
endmacro()