mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We would build two copies of swiftReflection, one for the host and one for the target. However, the compiler configuration cannot be swapped out in the middle as we were attempting to do. This would result in a failure to build sometimes due to the missing dependency on the wanted compiler. More importantly, it would also use the wrong compiler when building the library. Although this duplicates the source paths, correctness is preserved.
9 lines
367 B
CMake
9 lines
367 B
CMake
|
|
add_swift_host_library(swiftReflection STATIC
|
|
${SWIFT_SOURCE_DIR}/stdlib/public/Reflection/MetadataSource.cpp
|
|
${SWIFT_SOURCE_DIR}/stdlib/public/Reflection/TypeLowering.cpp
|
|
${SWIFT_SOURCE_DIR}/stdlib/public/Reflection/TypeRef.cpp
|
|
${SWIFT_SOURCE_DIR}/stdlib/public/Reflection/TypeRefBuilder.cpp)
|
|
target_link_libraries(swiftReflection PUBLIC
|
|
swiftDemangling)
|