Files
swift-mirror/lib/SwiftReflection/CMakeLists.txt
Saleem Abdulrasool cb3365f03d build: split out swiftReflection builds
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.
2019-11-18 17:17:35 -08:00

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)