Commit Graph

7640 Commits

Author SHA1 Message Date
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
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
Stephen Canon
a381589524 SE-0425 implementation (#72139) 2024-04-02 16:24:41 -04:00
Yuta Saito
977bf6f7fb Merge pull request #72723 from kateinoigakukun/yt/remove-ranlib-workaround 2024-03-31 12:50:00 +09: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
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
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
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
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
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
Yuta Saito
52e8fbc115 Merge pull request #72345 from kateinoigakukun/katei/has-feature-swiftcall
[embedded] Use `__has_feature(swiftcc)` to detect Swift calling convention
2024-03-27 19:39:25 +09:00
Mishal Shah
f660c2b46b Merge pull request #72496 from apple/add-dsymutil-args-toolchain-preset
[Preset] Disable verify dwarf for toolchain preset
2024-03-26 16:07:00 -07:00
Mishal Shah
f87184522c Rename dsymutil-args to extra-dsymutil-args 2024-03-26 10:10:09 -07:00
Eric Miotto
0edd96e311 Merge pull request #72486 from edymtt/emiotto/add-flag-to-pass-arguments-to-dsymutil
build-script: add flag to pass arguments to dsymutil
2024-03-25 07:28:35 -07:00
Mike Ash
41cd0ead61 Merge pull request #72501 from mikeash/remove-externalgenericmetadatabuilder
[Runtime] Remove ExternalGenericMetadataBuilder.
2024-03-22 16:03:26 -04:00
Eric Miotto
efdd4954d3 build-script: add flag to pass arguments to dsymutil
This is currently needed to disable DWARF verification in
some Apple internal configurations.

Addresses rdar://125092216
2024-03-22 08:04:31 -07:00
Mike Ash
0491192337 [Runtime] Remove ExternalGenericMetadataBuilder. 2024-03-21 17:56:17 -04:00
Max Desiatov
22a37e3a8e Add --stash as alternative to --clean to update-checkout (#71178)
Use of `--clean` can lead to irreversible loss of uncommitted data. We still need to reset Swift project repositories to a clean state, but without deleting all in-progress changes. Passing `--stash` instead of (or in addition to) `--clean` will preserve uncommitted changes in stashes of corresponding repositories.
2024-03-21 12:17:25 -07:00
Mishal Shah
9ce6a35b98 [Preset] Disable verify dwarf for toolchain preset 2024-03-21 12:10:51 -07:00
Yuta Saito
f95fd21e1d [test] Add a test for class allocation on Embedded Wasm 2024-03-20 23:07:29 +00:00
Doug Gregor
922e3daaea Remove build infrastructure for globally enabling noncopyable types
Now that the compilation model of noncopyable types is enabled everywhere,
and one can enable the feature for specific modules, we no longer need a
separate build-script/CMake option to enable it globally. Remove it all.
2024-03-19 13:35:31 -07:00
Karoy Lorentey
e9a911153c Revert "[build] Enable noncopyable generics; disable anything that prevents toolchain builds from succeeding"
This reverts commit 0266c6d909332e098e1490fb0352cdd4bd17b116.
2024-03-18 11:03:49 -07:00
Karoy Lorentey
70a2a02380 [util] swift-abi-symbol-checker: Don’t exit early for missing additions 2024-03-18 11:03:49 -07:00
Karoy Lorentey
975d7c8b57 [build] Enable noncopyable generics; disable anything that prevents toolchain builds from succeeding 2024-03-18 11:03:49 -07:00