File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ add_compile_options(
47
47
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -disable-implicit-concurrency-module-import>"
48
48
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -disable-implicit-string-processing-module-import>" )
49
49
50
+ add_subdirectory (clang )
50
51
if (WIN32 )
51
52
add_subdirectory (Windows )
52
53
endif ()
Original file line number Diff line number Diff line change
1
+
2
+ gyb_expand (float.swift.gyb float.swift )
3
+
4
+ add_library (swift_Builtin_float
5
+ float.swift
6
+ "${PROJECT_SOURCE_DIR} /linker-support/magic-symbols-for-install-name.c" )
7
+ set_target_properties (swift_Builtin_float PROPERTIES
8
+ Swift_MODULE_NAME _Builtin_float )
9
+ target_compile_options (swift_Builtin_float PRIVATE
10
+ "$<$<PLATFORM_ID:Darwin>:SHELL:-Xfrontend -module-abi-name -Xfrontend Darwin>" )
11
+
12
+ install (TARGETS swift_Builtin_float
13
+ ARCHIVE DESTINATION "${SwiftOverlay_INSTALL_LIBDIR} "
14
+ LIBRARY DESTINATION "${SwiftOverlay_INSTALL_LIBDIR} "
15
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR} " )
16
+ emit_swift_interface (swift_Builtin_float )
17
+ install_swift_interface (swift_Builtin_float )
18
+
19
+ embed_manifest (swift_Builtin_float )
Original file line number Diff line number Diff line change @@ -98,6 +98,12 @@ copy_files("" "Core" FILES "Info.plist.in")
98
98
99
99
# Platform Overlays
100
100
101
+ # Copy magic linker symbols
102
+ copy_library_sources ("linker-support" "" "Overlay" )
103
+
104
+ message (STATUS "Clang[${StdlibSources} /public/ClangOverlays] -> ${CMAKE_CURRENT_LIST_DIR} /Overlay/clang" )
105
+ copy_files (public /ClangOverlays Overlay/clang FILES float.swift.gyb )
106
+
101
107
# Windows Overlay
102
108
message (STATUS "WinSDK[${StdlibSources} /public/Windows] -> ${CMAKE_CURRENT_LIST_DIR} /Overlay/Windows/WinSDK" )
103
109
copy_files (public /Windows Overlay/Windows/WinSDK FILES WinSDK.swift )
You can’t perform that action at this time.
0 commit comments