Commit Graph

8542 Commits

Author SHA1 Message Date
Allan Shortlidge
48f236d09a build-script: Copy libclang_rt.a from the host toolchain for visionOS.
During the toolchain build, when building the Swift standard library for
platforms other than macOS the `libclang_rt.a` needs to be copied out of the
host SDK. That wasn't happening for visionOS.

Resolves rdar://135023111.
2024-08-30 18:15:13 -07:00
swift-ci
763c61f92f Merge remote-tracking branch 'origin/main' into rebranch 2024-08-30 18:13:35 -07:00
Jim M. R. Teichgräber
f2e57d8c76 [SourceKit] Add optional declarations array to interface gen request (#75802)
Introduces the new DeclarationsArrayBuilder and adds it to the
EditorConsumer. Declaration info always includes a kind, offset, and
length, and includes a USR where applicable.
As the USR is already available for editor.open.interface type requests,
this doesn't compute any new information, it just exposes more of what's
there already.
2024-08-30 18:04:12 -07:00
Rintaro Ishizaki
89e9622402 [build-script] Always clean 'SwiftTesting' and 'SwiftTestingMacros'
These products are built with CMake. In incremental build environments,
these products don't detect compiler changes, so the artifacts aren't
rebuilt unless the source code of these projects are changed.
To workaround that, always clean them in build-script to ensure they are
rebuilt.

rdar://135021207
2024-08-30 11:30:47 -07:00
swift-ci
e61b6678a0 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-29 21:33:27 -07:00
Jake Petroules
74088ffb92 Update swift-toolchain-sqlite to 1.0.1 (#76070) 2024-08-29 21:28:51 -07:00
Ben Langmuir
ad82d86041 Bump the deployment target for the compiler to macOS 13.0
Bump the deployment target from macOS 10.13-aligned versions to macOS
13.0-aligned versions. This allows us to stop linking CoreFoundation
in the swift runtime, which was previously required for availability
checking. It also lets us align the deployment target on x86_64 with
arm64, which was 11.0. Finally, it is a prerequisite to being able to
build swift using the macOS 15 beta SDKs.
2024-08-29 14:30:09 -07:00
Yuta Saito
32bfb7e603 Include swift-testing in the Wasm Swift SDK
This change adds build support for swift-testing in the Wasm Swift SDK.
Unfortunately, we can't use the regular SwiftTesting build-script product
because Wasm build cannot use build-script's cross-compilation infrastructure
for now. So we build swift-testing in WasmSwiftSDK product and install it
to the SDK package.
2024-08-29 14:02:38 +00:00
swift-ci
cc145276d6 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-28 14:56:53 -07:00
Guillaume Lessard
dfa60a1c80 Merge pull request #76101 from kateinoigakukun/yt/update-swift-collection-113
Update swift-collections to 1.1.3
2024-08-28 14:43:56 -07:00
swift-ci
ae9af8e8c7 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-27 02:14:48 -07:00
Max Desiatov
6c9994632a Add --preset-vars-file to build-script for easier preset vars handling (#76058)
It's not always convenient to pass preset substitution arguments on an interactive command-line. Sometimes one might also need to generate these vars automatically, outside of a `build-script` invocation and also store those vars in a file for later reuse.

This change adds a new optional `--preset-vars-file` customization point to `build-script`, which allows users to pass a a file with newline separated key-value pars for preset variables substitution in addition to passing those in a direct `build-script` invocation.
2024-08-27 09:57:04 +01:00
Yuta Saito
78ecc95bcf Update swift-collections to 1.1.3
This updates the swift-collections dependency to 1.1.3, which includes
a CMake fix for the WebAssembly target. "main", "next", and "rebranch"
schemes are all updated.
2024-08-27 08:33:31 +00:00
swift-ci
99541010a7 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-23 21:54:26 -07:00
Felipe de Azevedo Piovezan
ea5ed4888f [build-script] Remove python override
Build script should just use what it is told to use.
2024-08-23 12:27:40 -07:00
Rintaro Ishizaki
593dc19f8b [update-checkout] Add swift-testing to release/6.0.0 scheme
Add swift-testing:release/6.0.0
2024-08-23 08:49:10 -07:00
swift-ci
8b2034d540 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-22 23:14:32 -07:00
Mishal Shah
7075c05d62 Merge pull request #76004 from swiftlang/shahmishal/update-checkout-6.0.0
[update-checkout] Add release/6.0.0 branch support
2024-08-22 23:09:58 -07:00
swift-ci
8226e62d08 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-22 09:14:21 -07:00
Hiroshi Yamauchi
911933e25d Merge pull request #76015 from hjyamauchi/buildps1
Fix another cross-compile build failure.
2024-08-22 09:06:27 -07:00
swift-ci
ed0228e242 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-21 17:15:32 -07:00
Rintaro Ishizaki
7d97a4a403 [update-checkout] Add swift-testing to release/6.0 scheme
Add swift-testing:release/6.0
2024-08-21 12:49:49 -07:00
swift-ci
81bdf25038 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-21 11:36:16 -07:00
Rintaro Ishizaki
b6a0162c64 Merge pull request #75958 from rintaro/build-script-rdar133946466-2
[build-script] Fix product dependencies
2024-08-21 11:14:10 -07:00
swift-ci
1e58965370 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-21 10:15:33 -07:00
Jeremy Schonfeld
96c3357731 Enable swift-corelibs-foundation tests on Windows (#75932) 2024-08-21 10:10:48 -07:00
Hiroshi Yamauchi
cc6b74342a Fix another cross-compile build failure.
This fix is similar to https://github.com/swiftlang/swift/pull/75970
but for `Build-TestingMacros`.
2024-08-21 09:38:08 -07:00
Mishal Shah
28a820c564 [update-checkout] Add release/6.0.0 branch support 2024-08-20 23:52:37 -07:00
swift-ci
bf588f0b48 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-20 23:14:01 -07:00
Mishal Shah
08721cf939 Merge pull request #75979 from swiftlang/update-swift-version
Bump the Swift version to 6.1
2024-08-20 23:05:17 -07:00
swift-ci
18cfbf08f7 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-20 13:14:18 -07:00
Saleem Abdulrasool
135ce460d0 Merge pull request #75985 from compnerd/testing-style
utils: adjust the swift-testing build to match style
2024-08-20 13:05:26 -07:00
swift-ci
0c0146b3d7 Merge remote-tracking branch 'origin/main' into rebranch 2024-08-20 11:14:42 -07:00
Hiroshi Yamauchi
8ee61aa82c Merge pull request #75957 from hjyamauchi/cacheflag
Make it possible to specify the sccache storage location via a flag.
2024-08-20 11:13:49 -07:00
swift-ci
4f5f7aeabe Merge remote-tracking branch 'origin/main' into rebranch 2024-08-20 09:35:00 -07:00
Saleem Abdulrasool
4f3da9591a utils: adjust the swift-testing build to match style
This renames the `Build-*` phase associated with building swift-testing.
Rather than name it `Build-SwiftTesting` match the other functions and
name it `Build-Testing`.
2024-08-20 09:33:30 -07:00
Saleem Abdulrasool
ebe17694d4 Merge pull request #75949 from compnerd/testing-macros
utils: improve testing macro setup for Windows
2024-08-20 09:32:57 -07:00
swift-ci
c487ee996d Merge remote-tracking branch 'origin/main' into rebranch 2024-08-20 00:54:49 -07:00
Mishal Shah
ebf3ec7939 Merge pull request #75970 from hjyamauchi/crosscompilefix
Fix cross-compile build failure.
2024-08-20 00:43:10 -07:00
Mishal Shah
3ac0dff27d Bump the Swift version to 6.1 2024-08-19 23:09:31 -07:00
swift-ci
2b0d9162fb Merge remote-tracking branch 'origin/main' into rebranch 2024-08-19 21:54:34 -07:00
Mishal Shah
4229a917cb [update-checkout] Update the swift-driver branch for rebranch 2024-08-19 21:48:12 -07:00
swift-ci
0398da01ba Merge remote-tracking branch 'origin/main' into rebranch 2024-08-19 20:35:56 -07:00
Andrew Rogers
511e8795ef [Android] fix NDK extract location
The Android NDK is being extracted with an extra intermediate directory:

  $BinaryCache\android-ndk-r26b\android-ndk-r26b

The Android build fails because it expects the NDK contents to live
immediately under the directory:

  $BinaryCache\android-ndk-r26b

The extra android-ndk-r26b sub-dir comes from the NDK zip archive
itself, which we have no control over. To work-around, allow callers
of Extract-ZipFile to control whether or not it should create the
extraction sub-dir. Override the default behavior for NDK extraction
only.
2024-08-19 16:36:01 -07:00
Hiroshi Yamauchi
3054eab6b0 Fix cross-compile build failure.
In Build-FoundationMacros, use the build Swift SDK for the build case
and when cross-compiling, use the swift syntax build from the build
arch binary cache as opposed to the host arch binary cache or else the
architecture mismatch will happen.
2024-08-19 16:33:46 -07:00
swift-ci
7f43de5c7c Merge remote-tracking branch 'origin/main' into rebranch 2024-08-19 14:54:47 -07:00
Saleem Abdulrasool
2d0c707b63 utils: improve testing macro setup for Windows
Build the testing macros early along with the Foundation macros and then
build a copy for distribution as well. This brings testing macros in
line with the Foundation macros.
2024-08-19 14:25:18 -07:00
Rintaro Ishizaki
20f201d3ec [build-script] Fix product dependencies
SwiftPM now depends on `SwiftTesting`, `SwiftTesting` depends on
`SwiftTestingMacros`

rdar://133946466
2024-08-19 10:09:40 -07:00
Hiroshi Yamauchi
36e071684e Make it possible to specify the sccache storage location via a flag.
This allows the cache to be stored outside the binary cache.
2024-08-19 09:59:49 -07:00
Saleem Abdulrasool
59019af4b3 utils: raise PinnedVersion to an argument
This is required so that we can use a custom pinned toolchain. The three
arguments required are:
  - `PinnedBuild` (URL to toolchain)
  - `PinnedSHA256` (SHA256 for installer)
  - `PinnedVersion` (toolchain version)

Prior to this, we would error out as `PinnedVersion` would be unset and
could not be specified as it was not an argument.
2024-08-19 09:06:29 -07:00