mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This eliminates us setting an LLVM_ prefixed variable in a situation where there is a viable alternative. We want to eliminate as many of these as possible since they can cause conflicts with variables set in LLVMConfig.cmake. I also added some convenience tablegen functions in AddSwiftTableGen.cmake and changed all tblgen users to use that instead. rdar://26154980
14 lines
415 B
CMake
14 lines
415 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(SWIFT ${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()
|