mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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.
23 lines
809 B
CMake
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)
|