mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
A follow-up PR adds a flag to control an inline namespace that allows symbols in libDemangling to be distinguished between the runtime and the compiler. These dependencies ensure that the flag is plumbed through for inclusions of Demangling headers that aren't already covered by existing `target_link_libraries`.
23 lines
599 B
CMake
23 lines
599 B
CMake
if(XCODE)
|
|
file(GLOB_RECURSE REMOTE_LIB_HEADERS
|
|
${SWIFT_SOURCE_DIR}/include/swift/Remote/*.h
|
|
${SWIFT_SOURCE_DIR}/include/swift/Remote/*.def)
|
|
|
|
set_source_files_properties(${REMOTE_LIB_HEADERS}
|
|
PROPERTIES
|
|
HEADER_FILE_ONLY true)
|
|
source_group("libRemote Headers" FILES ${REMOTE_LIB_HEADERS})
|
|
else()
|
|
set(REMOTE_LIB_HEADERS)
|
|
endif()
|
|
|
|
add_swift_host_library(swiftRemoteAST STATIC
|
|
RemoteAST.cpp
|
|
InProcessMemoryReader.cpp
|
|
${REMOTE_LIB_HEADERS})
|
|
target_link_libraries(swiftRemoteAST PUBLIC
|
|
swiftDemangling)
|
|
target_link_libraries(swiftRemoteAST PRIVATE
|
|
swiftIRGen
|
|
swiftSema)
|