mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
14 lines
414 B
CMake
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()
|