Commit Graph

13 Commits

Author SHA1 Message Date
Alastair Houghton
0813e95569 Merge pull request #81440 from al45tair/currentos-availability
[Concurrency][Stdlib] Add SwiftStdlibCurrentOS availability, use it.
2025-07-07 12:04:00 +01:00
Evan Wilde
98cf8d2b64 [CMake] Add cache for enabling sccache builds
Add cmake cache for enabling sccache while building with the new runtime
build when sccache is available.

To build with sccache, pass the `sccache.cmake`

```
cmake \
  -B build \
  -S Runtime/Core \
  -C Runtimes/Core/cmake/cache/sccache.cmake
```
2025-03-14 10:38:39 -07:00
Evan Wilde
f6edc3d7d0 CMake: Allow setting optimization remark type
Optimization remarks were always emitted on Darwin but not on the other
platforms and were forced to use the bitstream format. Adding a flag to
enable or disable them as desired and specify the desired output format.

Fixes: https://github.com/swiftlang/swift/issues/79279
2025-02-27 20:36:19 -08:00
Evan Wilde
f490e611e1 Merge pull request #79335 from etcwilde/ewilde/catalyst-support
CMake: Catalyst Support
2025-02-19 17:16:09 -08:00
Eric Miotto
3e9a74cc4a Runtimes: enable build of SwiftOnoneSupport on Apple platforms.
Addresses rdar://145066924
2025-02-18 10:30:57 -08:00
Evan Wilde
8f1bc8f3d3 CMake: Apple: Enable catalyst slice
Add the triples to the appropriate Apple build caches, enabling zippered
catalyst builds.
2025-02-18 09:34:17 -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
Evan Wilde
a9da4a5c1a CMake: Add install platform and architecture subdirs
In some configurations, libraries are installed under
`<install-prefix>/{libdir}/swift/<platform>/<arch>` and module content
is installed under `<install-prefix>/{libdir}/swift/<platform>`.

This also accounts for the fact that Swift currently looks under
`<install-prefix>/{libdir}/swift_static/**` for the static stdlib
builds.
2025-01-23 12:25:21 -08:00
Justice Adams
95219bb698 Set SwiftCore_ARCH_SUBDIR and SwiftCore_PLATFORM_SUBDIR as CACHE variables properly for Bridge and TVos (#78784) 2025-01-22 13:53:06 -08:00
Eric Miotto
5d194a925e [CMake] Update MinSizeRel configuration for Apple platforms...
...and use it as a default for one of them.

Addresses rdar://142820419
2025-01-15 14:14:54 -08:00
Eric Miotto
16205998fd [CMake stdlib] do not override flags for RelWithDebInfo when ...
...building the stdlib for Apple platforms.

For now we want to match the flags the existing configuration (which is
already accounted by the default values provided by CMake) -- in
particular the generation of full symbols and usage of whole module
optimization.

Addresses rdar://142620659
2025-01-09 09:00:02 -08:00
Evan Wilde
aed70b37cd SwiftCore: CMake: Update Apple caches
Updating the Apple cmake caches to enable the filesystem support,
setting the appropriate architecture and platform subdirectories.
2025-01-07 09:24:15 -08:00
Justice Adams
acb2a4483e [Cmake] add toolchain and cache files for Darwin platforms (#77958)
* add toolchain and cache files for Darwin platforms

* cleanup SDKROOT check and remove explicit check for CMAKE_MAKE_PROGRAM
2024-12-10 08:34:18 -08:00