mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rather than build multiple copies of LLVMSupport (4x!) build it one and merge it into the various targets. This would ideally not be needed to be named explicitly everywhere, but that requires using `add_library` rather than `add_swift_target_library`.
18 lines
869 B
CMake
18 lines
869 B
CMake
# libswiftRemoteMirror.dylib should not have runtime dependencies; it's
|
|
# always built as a shared library.
|
|
if(SWIFT_BUILD_DYNAMIC_STDLIB)
|
|
add_swift_target_library(swiftRemoteMirror
|
|
SHARED DONT_EMBED_BITCODE NOSWIFTRT
|
|
SwiftRemoteMirror.cpp
|
|
LINK_LIBRARIES
|
|
swiftReflection
|
|
C_COMPILE_FLAGS
|
|
${SWIFT_RUNTIME_CXX_FLAGS} -DswiftRemoteMirror_EXPORTS
|
|
LINK_FLAGS
|
|
${SWIFT_RUNTIME_LINK_FLAGS}
|
|
INCORPORATE_OBJECT_LIBRARIES swiftLLVMSupport
|
|
SWIFT_COMPILE_FLAGS ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
|
|
INSTALL_IN_COMPONENT
|
|
swift-remote-mirror)
|
|
endif()
|