Files
swift-mirror/Runtimes/Overlay/clang/CMakeLists.txt
Saleem Abdulrasool d51e1bcedf Runtimes: inject Windows SDK clang modules
When building the standard library, the SDK is not fully staged and so
the compiler would not be able to inject the VFS overlay for the
modularisation of the Windows SDK. Manually construct the mappings and
apply them.
2025-03-27 08:23:40 -07:00

23 lines
809 B
CMake

gyb_expand(float.swift.gyb float.swift)
add_library(swift_Builtin_float
float.swift
"${PROJECT_SOURCE_DIR}/linker-support/magic-symbols-for-install-name.c")
set_target_properties(swift_Builtin_float PROPERTIES
Swift_MODULE_NAME _Builtin_float)
target_compile_options(swift_Builtin_float PRIVATE
"$<$<PLATFORM_ID:Darwin>:SHELL:-Xfrontend -module-abi-name -Xfrontend Darwin>")
target_link_libraries(swift_Builtin_float PRIVATE
$<$<PLATFORM_ID:Windows>:ClangModules>
swiftCore)
install(TARGETS swift_Builtin_float
ARCHIVE DESTINATION "${SwiftOverlay_INSTALL_LIBDIR}"
LIBRARY DESTINATION "${SwiftOverlay_INSTALL_LIBDIR}"
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
emit_swift_interface(swift_Builtin_float)
install_swift_interface(swift_Builtin_float)
embed_manifest(swift_Builtin_float)