Overlay: support Catalyst, hooks and backdeployment on Apple platforms

This involves copying the correct source file to generate the magic
symbols (the one for SwiftCore would not work here), and listening to
the backdeployment configuration of Core.

Take the chance to add hooks for vendor overrides.

Addresses rdar://156436695
This commit is contained in:
Eric Miotto
2025-07-22 14:45:39 -07:00
parent d7bdbcb1c0
commit 94d554dd61
6 changed files with 58 additions and 1 deletions

View File

@@ -105,7 +105,7 @@ copy_files("" "Supplemental/Distributed" FILES "Info.plist.in")
# Platform Overlays
# Copy magic linker symbols
copy_library_sources("linker-support" "" "Overlay")
copy_library_sources("linker-support" "public/ClangOverlays" "Overlay")
message(STATUS "Clang[${StdlibSources}/public/ClangOverlays] -> ${CMAKE_CURRENT_LIST_DIR}/Overlay/clang")
copy_files(public/ClangOverlays Overlay/clang FILES float.swift.gyb)