Commit Graph

8542 Commits

Author SHA1 Message Date
swift_jenkins
9706b85321 Merge remote-tracking branch 'origin/main' into next 2024-03-27 03:45:03 -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
swift_jenkins
dba426cf81 Merge remote-tracking branch 'origin/main' into next 2024-03-26 16:08:10 -07: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
swift_jenkins
2063e76a27 Merge remote-tracking branch 'origin/main' into next 2024-03-25 07:45:08 -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
swift_jenkins
1d0d769d4b Merge remote-tracking branch 'origin/main' into next 2024-03-22 13:06: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
swift_jenkins
762e629908 Merge remote-tracking branch 'origin/main' into next 2024-03-21 12:27:07 -07: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
swift_jenkins
1bb37415e0 Merge remote-tracking branch 'origin/main' into next 2024-03-19 20:07:10 -07: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
swift_jenkins
970b1d077e Merge remote-tracking branch 'origin/main' into next 2024-03-18 20:46:37 -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
Saleem Abdulrasool
1bc7232d3b utils: build makeOption when building with build.ps1
As `build.ps1` is used both for development and for CI, enable the
building for `makeOption` tool in swift-driver to ease development.
2024-03-16 08:56:01 -07:00
swift_jenkins
1edc9b5cd2 Merge remote-tracking branch 'origin/main' into next 2024-03-16 01:44:13 -07:00
Mishal Shah
6204091a7a [update-checkout] Add Swift 6.0 branch support 2024-03-15 22:44:48 -07:00
swift_jenkins
e6ddd7264c Merge remote-tracking branch 'origin/main' into next 2024-03-13 15:46:00 -07:00
Arnold Schwaighofer
7196c9c9ea Merge pull request #72296 from aschwaighofer/build_config_fix_fragile_resilient
Don't set enable-library evolution under SWIFT_STDLIB_USE_FRAGILE_RESILIENT_PROTOCOL_WITNESS_TABLES
2024-03-13 15:28:06 -07:00
Arnold Schwaighofer
2bd3feeeee Don't set enable-library evolution under SWIFT_STDLIB_USE_FRAGILE_RESILIENT_PROTOCOL_WITNESS_TABLES
Rather, for the purpose of testing set this under an individual build
preset configuration.
2024-03-13 10:27:40 -07:00
swift_jenkins
15dbb1091b Merge remote-tracking branch 'origin/main' into next 2024-03-13 08:41:42 -07:00
Arnold Schwaighofer
315a763c28 Merge pull request #72218 from aschwaighofer/fragile_resilient_protocols
IRGen: Add code to support building fragile resilient protocol witnesses
2024-03-13 08:40:44 -07:00
swift_jenkins
ac666c8499 Merge remote-tracking branch 'origin/main' into next 2024-03-13 01:47:03 -07:00
Rokhini Prabhu
bae6450bf9 Merge pull request #72283 from apple/rokhinip/121121793-stdlib-minimal
Enable task-to-thread model by default for mixin_stdlib_minimal
2024-03-13 01:40:04 -07:00
Rokhini Prabhu
99069a3c4e Enable task-to-thread model by default for stdlib_freestanding_minimal
Radar-Id: rdar://problem/121121793
2024-03-12 19:38:19 -07:00
swift_jenkins
c96ec6365c Merge remote-tracking branch 'origin/main' into next 2024-03-12 13:59:00 -07:00
Kuba Mracek
2ca10b7e40 Remove 'bootstrapping=bootstrapping' from the last two macOS CI jobs settings 2024-03-12 12:27:57 -07:00
Mishal Shah
7f7294a251 [Preset] Skip SourceKit LSP and Indexstore DB test in buildbot_osx_package,no_test preset 2024-03-11 18:05:50 -07:00
swift_jenkins
02fccdb5c2 Merge remote-tracking branch 'origin/main' into next 2024-03-11 04:05:14 -07:00
Yuta Saito
761812af5f Merge pull request #72212 from kateinoigakukun/yt/install-llvm-ranlib 2024-03-11 19:52:37 +09:00
Arnold Schwaighofer
ea70aea43c IRGen: Add code to support building fragile resilient protocol witnesses
We don't currently support building resilient relative protocol witness tables.
One might want to build with relative witness tables but not need
resilient protocols. Allow for that scenario.

Add a test configuration to test library-evolution + fragile resilient
protocols + relative protocol witness tables.
2024-03-10 09:14:08 -07:00
swift_jenkins
ecb1682ea7 Merge remote-tracking branch 'origin/main' into next 2024-03-09 18:07:35 -08:00
Daniel Rodríguez Troitiño
42e43edef3 [cmake] Unify usage of create_symlink/copy across the build files. (#72202)
In several places, there was the same or similar code to either do
a symlink or use copy/copy_if_different/copy_directory in Windows
systems. The checks were also slightly different in some cases.

There is a `SWIFT_COPY_OR_SYMLINK` that can be controlled as a CMake
option, and uses `CMAKE_HOST_UNIX` as default. Change all cases that
I can find to use that value. Also create a parallel value
`SWIFT_COPY_OR_SYMLINK_DIR` to apply to directories.

There is still a couple of cases that are specific to macOS SourceKit
framework which I have left as-is, since symlinks is probably the only
right thing to do there.

There's a case for Windows specifically that uses symlinks (in
523f807694/cmake/modules/SwiftConfigureSDK.cmake (L502))
which I have not modified as well.
2024-03-09 18:03:55 -08:00
Yuta Saito
641e5e74af build: Install llvm-ranlib in OSS toolchains
This change adds `llvm-ranlib` to the list of components installed into
the OSS toolchains for macOS and Linux. The `llvm-ranlib` tool is
required for WebAssembly builds because system `ranlib` usually cannot
recognize Wasm object format. `llvm-ranlib` is just a symlink to
`llvm-ar`, so extra space is not a concern.
2024-03-09 17:42:41 +00:00
swift_jenkins
a9e6641d12 Merge remote-tracking branch 'origin/main' into next 2024-03-08 20:59:31 -08:00
Yuta Saito
cf619e2a7e Merge pull request #71977 from kateinoigakukun/pr-5ff3fb0d5bd5d000aa636f748af814d1607455e3 2024-03-09 13:40:59 +09:00
Yuta Saito
82b1d9c803 build: Rename prefer_just_built_toolchain -> prefer_native_toolchain 2024-03-08 16:24:10 +00:00
swift_jenkins
87c37fe6d2 Merge remote-tracking branch 'origin/main' into next 2024-03-07 16:46:28 -08:00
Meghana Gupta
f3a85b118f Add build-script option and lit config for nonescapable_types
With this build-script has a flag --enable-experimental-nonescpable-types=1
to enable this feature in stdlib.

Also we can now add // REQUIRES: nonescapable_types to tests which run only when
the compiler is built with this feature turned on.
2024-03-06 21:57:03 -08:00
swift_jenkins
6ced44fdbb Merge remote-tracking branch 'origin/main' into next 2024-03-06 15:46:00 -08:00
Alex Hoppen
e6b78083d7 [build-presets] Remove test-sourcekit-lsp
I added the test-sourcekit-lsp command because I thought that we weren’t running sourcekit-lsp tests on the swift-syntax PR testing job (https://github.com/apple/swift/pull/72030). Then the job started failing with a TSAN failure and I thought that we would now not run sourcekit-lsp tests on the sourcekit-lsp PR testing job, so I added it there as well.

Turns out that my first assumption that we weren’t running sourcekit-lsp tests on swift-syntax PRs was wrong and the downstream failure of that was just due to racing PRs. Furthermore, the `test-sourcekit-lsp` flag doesn’t even exist. Instead, it got typo-corrected (?) to `test-sourcekit-lsp-sanitize-all`, which enabled the TSAN sanitizer on the swift-syntax and sourcekit-lsp PR testing jobs. And that caused test failures.

So, remove the `test-sourcekit-lsp` arguments again. After I made sourcekit-lsp build with strict concurrency / Swift 6 mode, I’ll re-enable TSAN on the sourcekit-lsp PR tests and fix any remaining TSAN issues.
2024-03-06 09:16:42 -08:00
swift_jenkins
c8069a752c Merge remote-tracking branch 'origin/main' into next 2024-03-05 23:28:48 -08:00
Alex Hoppen
0192f40420 Merge pull request #72097 from ahoppen/ahoppen/run-sourcekitlsp-tests
[build presets] Run sourcekit-lsp tests on macOS sourcekit-lsp CI job
2024-03-05 23:18:11 -08:00