Commit Graph

29 Commits

Author SHA1 Message Date
Eric Miotto
fa725278e4 Runtimes: add support for Runtime module
* take the chance to rename the containing folder, as in this context it
  should be clear we are talking about the Runtime module and not the
  Swift runtime
* this will fail to build for Apple platforms until we land #84388 -- to
  signal this, comment the invocations that would add the dependency on
  the Darwin overlay
* piggyback a fix to ensure we rebuild always all the external projects
  in the Supplemental superbuild used in macOS PR testing

Addresses rdar://160774902
2025-09-19 05:12:09 -07:00
Egor Zhdan
28f9db7bfa [WinSDK] Modularize <guiddef.h>
This fixes modularization errors that arise when importing a C++ header that contains `#include <guiddef.h>`, which might hijack this header from the WinSDK module where it belongs.
2025-08-28 22:21:55 +01:00
Saleem Abdulrasool
7e700889b0 RemoteMirror: add the SwiftRemoteMirror build to the new runtimes build
This adds the final missing runtime library to the runtiems build. With
this addition, the Windows SDK is complete.
2025-08-13 08:48:37 -07:00
Saleem Abdulrasool
c040f97aff Overlay: add C++ interop libraries
This introduces a build of the C++ interop runtime support to the new runtime library build.

Co-authored-by: Eric Miotto <1094986+edymtt@users.noreply.github.com>
2025-08-07 08:41:17 -07:00
Saleem Abdulrasool
90d74395ce Runtimes: add _Volatile module
Introduce a new runtimes build for the `_Volatile` module. This should
hopefully be the final supplemental library that we need for the
completion of the SDK.
2025-07-31 10:15:53 -07:00
Saleem Abdulrasool
7f758e96c3 Runtimes: reorder Resync.cmake, add additional copying
We were not copying over the `Info.plist` and had checked in the file in
a few of the supplemental libraries. Update this now to follow the
proper behaviour.
2025-07-31 10:15:43 -07:00
Eric Miotto
94d554dd61 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
2025-07-23 09:24:29 -07:00
Eric Miotto
5664fd6186 Merge pull request #81239 from sookach/pr/runtimes-differentiation
[Runtimes][CMake] Build Differentiation in new style.
2025-07-22 21:12:04 -07:00
Evan Wilde
7a1fdb3c08 [Runtimes][CMake] Add differentiation build
Adding initial pass at the differentiation build.

Co-authored-by: Andrew Sukach <a_sukach@apple.com>
2025-07-22 15:47:54 -07:00
Eric Miotto
4923ce817e Merge pull request #81529 from edymtt/edymtt/add-distributed-to-new-build-system-inert
[Runtimes][CMake] Add Distributed to Supplemental build
2025-07-17 08:51:20 -07:00
Saleem Abdulrasool
a34edba5f4 Runtimes: add an initial build of Observation
This migrates Observation to the new runtimes build. It requires some
additional help during the build to locate the internal `CMakeConfig.h`
header from the runtime build. However, this is a good skeleton for us
to start addressing some of those issues.
2025-07-16 09:14:39 -07:00
Eric Miotto
6a09e03420 [Runtimes][CMake] Add Distributed to Supplemental build
Do not enable this yet, as this would relies on a few find modules that
are not available at the moment.

Addresses rdar://151389005
2025-07-15 14:44:37 -07:00
Justice Adams
50e30709a5 [cmake] add Synchronization library to Supplemental build (#81310)
Addresses rdar://150300769

Add Synchronization library to new build system

Land https://github.com/swiftlang/swift/pull/81215 first
2025-05-16 11:20:42 -05:00
Saleem Abdulrasool
4b376025ce Runtimes: add overlay for Android platform
This introduces the Android and Math modules for Android in the platform
specific overlay.
2025-04-07 16:03:58 -07:00
Evan Wilde
aa6b5c2d37 [CMake] Copy StringProcessing files into stdlib
We want to move StringProcessing sources out of the experimental string
processing repository. Use the Resync script to copy the files from the
experimental repository into position in the StringProcessing library.
2025-03-26 16:45:23 -07:00
Saleem Abdulrasool
372923df48 Runtimes: add _Builtin_float to the overlay
This adds the missing `_Builtin_float` module to the overlay project.
This module is applicable to all platforms.
2025-03-21 12:13:32 -07:00
Evan Wilde
960779f556 Fold individual file copies into copy_files
Use the new copy_files to copy specific files into the appropriate
places without needing to duplicate as much code.
2025-03-18 16:31:19 -07:00
Evan Wilde
29de93de01 Split file copying
Splitting the file copying out of the library copying. This allows us to
list a specific set of files to copy into the new stdlib build from
specific locations.
2025-03-18 16:04:28 -07:00
Saleem Abdulrasool
c54dfe6092 Runtimes: add Overlay project
Add the next stage of the runtimes build - the overlays. This homes the
platform specific overlays for the libraries and is required to make
further progress towards a static SDK for Windows.
2025-03-03 15:36:31 -08:00
Saleem Abdulrasool
1ac0007883 Runtimes: introduce swift_Concurrency
This adds the `swift_Concurrency` module to the new runtimes build. This
is sufficient to build the code but will require further fine tuning to
ensure that all the flags entirely identical and that the ABI surface is
also fully replicated.
2025-02-13 16:24:36 -08:00
Eric Miotto
c1257eb4ef Runtimes: introduce SwiftOnoneSupport
The main goal for now is to have this building, with little
concern about matching the build flags used currently.

Keep it disabled by default on Apple platforms.

Addresses rdar://143151393
2025-02-03 11:34:51 -08:00
Justice Adams
4666a418e0 [CMAKE] Add Plist creation to swiftCore (#77960)
* update Resync to copy plist template

* include Plist in linked library for Darwin platforms

* only embedd plist on apple platforms

* formatting fix
2024-12-17 15:49:54 -08:00
Evan Wilde
08daac6466 Adding C/C++ portion of CommandLine support
Hooking up the bits of the build to link the swift commandline support
C++ bits into swiftCore.
2024-11-07 20:05:56 -08:00
Evan Wilde
8385137bfa Auto populate runtime source directory
This patch causes the convenient flow to automatically populate the
sources into the new runtime directory layout. This is run at build-time
so that it repopulates on each build. Since the resync script uses
`COPY_IF_DIFFERENT`, only files that change in the main source directory
are copied over, so incremental builds should still work.

Fixed a small bug in the resync script to ensure that it creates the
subdirectories in the right places.
2024-11-06 21:27:54 -08:00
Evan Wilde
03ba118bf3 Add swiftCore library
This patch hooks up the swiftCore library build and gets it installing.
This means that we have library evolution hooked up and vector types.

Building it dynamically found that we had duplicate symbols, so fixed
the swiftDemanglingCR library.

Needed to hook up the availability macros.

The flag configuration is for macOS, so we'll need to go through and
figure out what it should look like for the other platforms too.
2024-11-06 21:27:53 -08:00
Evan Wilde
f3b5fcdc15 Add stubs library to build
Adding stdlib stubs library, which uses gyb and requires knowing about
some of the platform info.

The stubs library pulls in several headers from the compiler repository.
We should probably clean that up, but not right now. I've made a note of
it.
2024-11-06 21:27:53 -08:00
Evan Wilde
96429952bb Build runtime library
Getting the runtime libraries building, while also ironing out more of
the macro definitions and flags.
2024-11-06 21:27:53 -08:00
Evan Wilde
bfb7596ab4 Add SwiftShims as an interface library 2024-11-05 08:19:43 -08:00
Evan Wilde
f03d9a01e6 Adding stdlib resync script
Adding a quick script to keep the pieces of the standard library in sync
between the new stdlib build and the old one.
2024-11-04 13:26:31 -08:00