mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
In DLL environments (Windows) a library RUNTIME piece will be the DLL itself (while the .lib will be the LIBRARY piece). Adding a RUNTIME destination install swiftDemangle.dll correctly in its expected place. This was avoiding some tests from running in the Windows CI machines. It should also allow people use tools like swift-demangle.
20 lines
541 B
CMake
20 lines
541 B
CMake
add_swift_host_library(swiftDemangle SHARED
|
|
SwiftDemangle.cpp
|
|
MangleHack.cpp)
|
|
target_compile_definitions(swiftDemangle PRIVATE
|
|
LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1)
|
|
target_link_libraries(swiftDemangle PRIVATE
|
|
swiftDemangling)
|
|
|
|
add_dependencies(compiler swiftDemangle)
|
|
swift_install_in_component(TARGETS swiftDemangle
|
|
RUNTIME
|
|
DESTINATION "bin"
|
|
COMPONENT compiler
|
|
LIBRARY
|
|
DESTINATION "lib${LLVM_LIBDIR_SUFFIX}"
|
|
COMPONENT compiler
|
|
ARCHIVE
|
|
DESTINATION "lib${LLVM_LIBDIR_SUFFIX}"
|
|
COMPONENT compiler)
|