mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
`swiftDemangling` was built three times: 1. swiftc 2. swiftRuntime 3. swiftReflection Fold the last two instances into a single build, sharing the objects across both the target libraries. This ensures that `swiftDemangling` is built with the same compiler as the target libraries and that the target library build remains self-contained.
15 lines
444 B
CMake
15 lines
444 B
CMake
set(swiftReflection_SOURCES
|
|
MetadataSource.cpp
|
|
TypeLowering.cpp
|
|
TypeRef.cpp
|
|
TypeRefBuilder.cpp)
|
|
|
|
add_swift_target_library(swiftReflection STATIC
|
|
${swiftReflection_SOURCES}
|
|
C_COMPILE_FLAGS ${SWIFT_RUNTIME_CXX_FLAGS} -DswiftCore_EXPORTS
|
|
LINK_FLAGS ${SWIFT_RUNTIME_LINK_FLAGS}
|
|
INCORPORATE_OBJECT_LIBRARIES
|
|
swiftLLVMSupport swiftDemangling
|
|
SWIFT_COMPILE_FLAGS ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
|
|
INSTALL_IN_COMPONENT dev)
|