Commit Graph

8541 Commits

Author SHA1 Message Date
Yuta Saito
934aea46d0 Merge pull request #72983 from kateinoigakukun/yt/enable-cxx-interop
[wasm] Enable Cxx module build
2024-04-12 15:08:30 +09:00
Mishal Shah
f0867486a2 Merge pull request #72991 from apple/shahmishal/curl-zlib-tag-update
Update curl and zlib on rebranch and next scheme
2024-04-11 22:22:39 -07:00
Yuta Saito
135f78ea08 [wasm] Define CMake options for stdlib explicitly for Darwin host build
The stdlib build for wasm target is failing on Darwin host due to
default values of some CMake options on Darwin host. We need to
explicitly define these options to make the build pass.
2024-04-12 03:06:02 +00:00
Evan Wilde
77a43afe0e Merge pull request #72989 from etcwilde/ewilde/pin-ninja-tag
Pin Ninja checkout to v1.11.1
2024-04-11 19:56:11 -07:00
Mishal Shah
e2036f9078 Update curl and zlib on rebranch and next scheme 2024-04-11 14:59:54 -07:00
Mishal Shah
22919a9039 Merge pull request #71818 from compnerd/curl
utils: update curl to 8.5.0
2024-04-11 14:58:21 -07:00
Mishal Shah
976f2e1fdb Merge pull request #71815 from compnerd/zlib
update_checkout: update zlib to 1.3.1
2024-04-11 14:57:59 -07:00
Evan Wilde
0cf6c6d8ed Pin Ninja checkout to v1.11.1
Ninja 1.12 just released and seems to be dying silently while building
the Swift stdlib. Lets go ahead and pin it to the old tag. Pinned
dependencies are better from a security standpoint anyway.

I'm leaving `next` on the ninja release branch so that we still have
some signal from it, but folks aren't generally living on `next`, so it
should have less impact.
2024-04-11 13:31:28 -07:00
Tim Kientzle
e1163c0f19 Add -a/--no-asserts option to build a no-asserts (production) toolchain 2024-04-11 12:37:36 -07:00
Mishal Shah
604580e431 Merge pull request #72246 from apple/fix-no-test-preset-for-toolchain
[Preset] Skip SourceKit LSP and Indexstore DB test in buildbot_osx_pa…
2024-04-11 10:09:34 -07:00
Yuta Saito
4508229a4e [wasm] Enable Cxx module build 2024-04-11 16:22:06 +00:00
Mishal Shah
2d919ee3bc Update rebranch scheme to include new llvm-project stable/20240405 branch 2024-04-10 17:16:52 -07:00
Saleem Abdulrasool
2c15456bd2 Merge branch 'main' into curl 2024-04-11 08:33:23 +09:00
Saleem Abdulrasool
d19a8dd2ca Merge branch 'main' into zlib 2024-04-11 08:31:30 +09:00
Artem Chikin
1f14158a1d Introduce VisionOS Platform
This change introduces a new compilation target platform to the Swift compiler - visionOS.

- Changes to the compiler build infrastrucuture to support building compiler-adjacent artifacts and test suites for the new target.
- Addition of the new platform kind definition.
- Support for the new platform in language constructs such as compile-time availability annotations or runtime OS version queries.
- Utilities to read out Darwin platform SDK info containing platform mapping data.
- Utilities to support re-mapping availability annotations from iOS to visionOS (e.g. 'updateIntroducedPlatformForFallback', 'updateDeprecatedPlatformForFallback', 'updateObsoletedPlatformForFallback').
- Additional tests exercising platform-specific availability handling and availability re-mapping fallback code-path.
- Changes to existing test suite to accomodate the new platform.
2024-04-10 09:38:02 -07:00
Yuta Saito
067806c727 [wasm] Enable Synchronization module build 2024-04-10 14:47:42 +00:00
Max Desiatov
0f4c8a8bac Bump swift-argument-parser to 1.3.1
rdar://118081439
2024-04-10 11:14:48 +01:00
Max Desiatov
1d14c5cb3a Add both repositories to rebranch and next schemes 2024-04-09 17:46:44 +01:00
Max Desiatov
7e787e4720 Add swift-log and swift-async-algorithms to checkouts
These repositories are used by https://github.com/apple/swift-sdk-generator, which needs to be built as a part of Swift CI jobs for creating a Swift SDK for WASI for CI testing purposes.
2024-04-09 17:43:17 +01:00
Saleem Abdulrasool
2ee26d97b7 Merge pull request #72376 from compnerd/options
utils: build `makeOption` when building with `build.ps1`
2024-04-09 01:49:41 +09:00
swift_jenkins
901577003f Merge remote-tracking branch 'origin/main' into next 2024-04-03 00:26:42 -07:00
Anthony Latsis
dea09e18ff Merge pull request #72704 from AnthonyLatsis/update-checkout-stash
update-checkout: Patch up a few flaws with `--stash`
2024-04-03 10:21:36 +03:00
swift_jenkins
7e5ea613c8 Merge remote-tracking branch 'origin/main' into next 2024-04-02 13:25:48 -07:00
Stephen Canon
a381589524 SE-0425 implementation (#72139) 2024-04-02 16:24:41 -04:00
swift_jenkins
adf4ee28cc Merge remote-tracking branch 'origin/main' into next 2024-03-30 21:04:05 -07:00
Yuta Saito
977bf6f7fb Merge pull request #72723 from kateinoigakukun/yt/remove-ranlib-workaround 2024-03-31 12:50:00 +09:00
swift_jenkins
afd51a627b Merge remote-tracking branch 'origin/main' into next 2024-03-30 11:41:53 -07:00
Saleem Abdulrasool
365da5f0ff Merge pull request #72711 from hjyamauchi/hiroshi/buildps1a
Remove unnecessary /usr/include/CSystem directory to avoid build errors
2024-03-31 03:36:12 +09:00
Yuta Saito
6ddf6833cb build: Use llvm-ranlib from the toolchain when building the wasm stdlib
llvm-ranlib is now installed in the toolchain, so we can use it instead of
the one in the build directory.

https://github.com/apple/swift/pull/72212
2024-03-30 12:36:40 +00:00
swift_jenkins
293c94fc70 Merge remote-tracking branch 'origin/main' into next 2024-03-30 02:23:09 -07:00
Hiroshi Yamauchi
45f5cff993 Remove unnecessary /usr/include/CSystem directory to avoid build errors 2024-03-29 14:30:19 -07:00
Anthony Latsis
baa0cfdd2d update-checkout: Patch up a few flaws with --stash
* Stash for each submodule for consistency.
* Stash untracked changes too.
* Don't redundantly hard-reset along the stash path.
* Add some comments and a more truthful description to `--stash` and
  `--clean`.
2024-03-29 21:45:50 +03:00
Yuta Saito
c8b1dc7ed0 test: Disable executable lit tests with WASI threads for now
We should enable them once WasmKit supports WASI threads.
2024-03-29 15:35:14 +00:00
Yuta Saito
ca5e7a6bdd build: Rename wasi-threads to wasip1-threads
The WASI community is transitioning to a new naming for the "preview"
version in the target triple: wasm32-wasi -> wasm32-wasip1.
At this moment, we keep the old triple wasm32-wasi because it's already
widely used, but we should start using the new triple threaded target.

LLVM checks only if the OS field *starts* with "wasi", so "wasip1" is
still considered a valid `isOSWASI()` target.

See: https://github.com/WebAssembly/wasi-libc/pull/478
2024-03-29 15:35:14 +00:00
Yuta Saito
ee0839aca4 build: Add -threads variant of Wasm stdlib build
This patch adds a `-threads` variant of the Wasm stdlib build, which
has completely different ABI and target triple. Now we build
non-threaded and threaded variants when `--build-wasm-stdlib` is
enabled.
2024-03-29 15:35:14 +00:00
swift_jenkins
efab2fb26c Merge remote-tracking branch 'origin/main' into next 2024-03-27 17:13:53 -07:00
Rintaro Ishizaki
05d3ff7fab Merge pull request #72629 from rintaro/macros-no-xcodeplugin
[Macros] Remove plugin related flags from toolchain Info.plist
2024-03-28 08:54:16 +09:00
swift_jenkins
881e23ea2c Merge remote-tracking branch 'origin/main' into next 2024-03-27 16:20:16 -07:00
Kuba (Brecka) Mracek
e7b6c1d6d9 Merge pull request #70715 from kubamracek/embedded-lld
[embedded] Start building and including lld even in Darwin toolchains
2024-03-27 16:05:54 -07:00
swift_jenkins
9ee1d239e2 Merge remote-tracking branch 'origin/main' into next 2024-03-27 13:47:31 -07:00
Mishal Shah
a5c659bbc3 Merge pull request #72630 from gottesmm/pr-50ee64cfdfa1abde15b69c4775812536c445d850
[build-toolchain] Add the ability to specify that a toolchain should only build macOS.
2024-03-27 13:38:03 -07:00
swift_jenkins
0c936a11a3 Merge remote-tracking branch 'origin/main' into next 2024-03-27 13:05:42 -07:00
Adrian Prantl
b6348b05af Merge pull request #72601 from Snowy1803/fix-lldb-dataformatters
Fix LLDB Swift data formatters breaking Swift code debugging
2024-03-27 12:50:17 -07:00
Michael Gottesman
470b874975 [build-toolchain] Add the ability to specify that a toolchain should only build macOS.
This is useful when one only has to repro something on macOS, needs a toolchain,
and wants to save some build time.
2024-03-27 10:54:59 -07:00
Rintaro Ishizaki
5d48a5a122 [Macros] Remove plugin related flags from toolchain Info.plist
`-external-plugin-path` flags pointing XcodeDefault.xctoolchain were
needed to use macro plugins in Apple SDK. But since Apple macro plugins
are not in `.xctoolchain` anymore, these flags are useless.

rdar://125498074
2024-03-27 10:42:58 -07:00
Kuba Mracek
9a77eb438d Include lld for macOS toolchain 2024-03-27 10:29:49 -07:00
Kuba Mracek
9c21e101c8 [embedded] Add lld to llvm_install_components too 2024-03-27 10:29:19 -07:00
Kuba Mracek
6798948c5b [embedded] Start building and including lld even in Darwin toolchains 2024-03-27 10:29:19 -07:00
Emil Pedersen
3581efc2aa Fix LLDB Swift data formatters breaking Swift code debugging
Because the data formatter for the compiler internals was registering itself as
swift, it was hiding the default data formatters for swift code.

rdar://125114526
2024-03-27 10:03:40 -07:00
swift_jenkins
9706b85321 Merge remote-tracking branch 'origin/main' into next 2024-03-27 03:45:03 -07:00