Commit Graph

411 Commits

Author SHA1 Message Date
Charles Zablit
4bb6b284ce Merge pull request #84166 from charles-zablit/charles-zablit/windows/move-llvm-overrides-to-llvm-repo
🍒 [windows] move llvm test overrides to the llvm-project repository
2025-09-11 21:57:28 +01:00
Charles Zablit
e48c9a42f7 [windows] move llvm test overrides to the llvm-project repository 2025-09-09 11:23:52 +01:00
Charles Zablit
0e7694683a [windows] update to the 6.1.2 toolchain in build.ps1 2025-09-05 16:17:00 +01:00
Charles Zablit
caec84cd54 [windows] upgrade to Python 3.10.1 2025-08-27 00:21:51 +01:00
Charles Zablit
56193998f5 [windows][lldb] fix incorrect LLVM_HOST_TRIPLE when cross-compiling 2025-07-21 13:00:13 +02:00
Saleem Abdulrasool
dc4302e65d utils: avoid redirection and use pipes for output redirection
When the output is directly redirected, the output is re-encoded. This
is particularly important as `Write-PList` uses `Invoke-Program` to
invoke `python.exe` to write the plist. However, because it is writing
to a file, while the output from Python is in UTF-8, the redirection
re-encodes the output to UTF16LE (BOM). Adjust the invocation to use
PS7+ `2|` and pipe both stdout and stderr as appropriate into files with
UTF-8 encoding restoring the encoding for the file.
2025-07-07 15:44:37 -04:00
Ben Barham
849cd8ee9a [Build] Pass the toolchain version through to Swift's compilation
Passes the value of the environment variable `TOOLCHAIN_VERSION` through
to Swift's `SWIFT_TOOLCHAIN_VERSION` for use in eg.
`-print-target-info` (and some day, `--version`).

(cherry picked from commit 3982ebbbb3)
2025-06-08 17:18:36 -07:00
Doug Schaefer
e41e191a84 Add ASN1 module to SourceKit-LSP Test
Super surprised to see the build for swift test hardcoded in
the build.ps1 script instead of in the sourcekit-lsp repo.
At any rate, looks like I need to add the dependency on ASN1
here too.

This is to support changes in SwiftPM that add the dependency
which translates through to sourcekit-lsp.

https://github.com/swiftlang/swift-package-manager/pull/8610
2025-05-12 10:08:12 -04:00
Doug Schaefer
8c5fd217f0 Add SwiftASN1 to sourcekit-lsp dependencies for Windows.
Updates the build.ps1 script to add the SwiftASN1 package support
to it's CMake build. This was caused by this dependency being added
to a module in SwiftPM that sourcekit-lsp imports.
2025-05-12 10:07:55 -04:00
Owen Voorhees
b2fa48d510 Define SwiftBuild_Dir when building SwiftPM in build.ps1 2025-05-05 09:15:40 -07:00
Saleem Abdulrasool
967726183e utils: update the installer build invocation
Adjust the install path computation to support installation of ARM64 on
AMD64. This enables the isolation of the runtimes on all architectures
for Windows to allow building the isolated runtime distribution.
2025-04-14 15:22:20 -07:00
Saleem Abdulrasool
2ec532ecee utils: adjust the emission of SDKSettings.json
Address the feedback from @jakepetroules about cases.
2025-04-14 15:22:19 -07:00
Saleem Abdulrasool
eb945d2b5a utils: extract Build-SDK helper
This creates a helper for building the SDK for a given OS/Architecture.
The building of the SDK should be uniform and this ensures that we can
maintain that uniformity.

This also highlights any structural changes that are being adjusted
manually. The desire is to bring this to zero by gaining control over
the install rules.
2025-04-14 15:22:19 -07:00
Brian Michel
c0c9116bd6 Remove cache configuration from EanbleCaching
EnableCaching should only configure cmake to allow for sccache usage, it
should not configure sccache itself in any way. Those configuration
options should be deferred into the environment variables that sccache
will look for when it starts up.
2025-04-01 11:13:06 -04:00
Brian Michel
09664ee7cb Add remote caching option
When setting up sccache we can choose between local disk caching or
remote caching via an S3-ish blob storage engine. To allow for backward
compatibility for anyone that might be using the existing option for
disk caching we leave it place and instead provide a new remote caching
option.

This option assumes you've read the sccache documentation for setting up
the correct environment variables for telling sccache where to find the
bucket and how to authenticate to it.
2025-03-31 19:28:35 -04:00
Saleem Abdulrasool
36af875572 Merge pull request #80289 from jeffdav/win-build-compilers-test-split
utils: Breakup Build-Compilers into Build- and Test- steps.
2025-03-29 17:19:47 -07:00
Saleem Abdulrasool
f3329376ca Merge pull request #80341 from compnerd/new-currency
utils: enable swift_Concurrency on the new build
2025-03-28 13:47:35 -07:00
Jeff
4f8af6cc9c utils: Breakup Build-Compilers into Build- and Test- steps. 2025-03-27 18:27:40 -07:00
Saleem Abdulrasool
d644044c1c Merge pull request #80336 from jeffdav/win-build-summary-sort
utils: Fix build.ps1 summary sorting.
2025-03-27 13:26:05 -07:00
Saleem Abdulrasool
075b973f98 utils: enable swift_Concurrency on the new build
Enable the Concurrency runtime for the experimental runtime builds on
Windows. This is required to enable the use of the static runtime to
bootstrap the early swift-driver.
2025-03-27 08:31:45 -07:00
Jeff
92b0849a56 utils: Fix build.ps1 summary sorting. 2025-03-26 22:02:42 -07:00
Saleem Abdulrasool
f042eb8755 Merge pull request #80323 from jeffdav/win-build-fix-android-os-enum-refs
utils: Fix Android OS enum usage in function params.
2025-03-26 20:05:39 -07:00
Jeff
f863570499 utils: Fix Android OS enum usage in function params. 2025-03-26 15:21:24 -07:00
Jeff
828a3470e8 utils: Add back missing ToolchainInstallRoot properties. 2025-03-25 21:43:36 -07:00
Jeff
f3c95329bc PR Feedback. 2025-03-24 13:28:44 -07:00
Jeff
498f8f7909 Add fixme. 2025-03-21 11:05:15 -07:00
Jeff
dd6f1c29b3 Fix missing param. 2025-03-21 10:18:44 -07:00
Jeff
b150d4c94e PR Feedback 2. 2025-03-20 21:57:27 -07:00
Jeff
3daeb9c7b9 PR Feedback. 2025-03-20 17:08:41 -07:00
Jeff
643f904353 utils: Handle additional args to Invoke-BuildStep in build.ps1. 2025-03-20 15:17:27 -07:00
Jeff
ad744421fd utils: Convert build.ps1 to use Platform definitions. 2025-03-20 15:17:25 -07:00
Saleem Abdulrasool
1289c9614e Merge pull request #80092 from compnerd/versioning
utils: version testing frameworks
2025-03-20 10:20:40 -07:00
Saleem Abdulrasool
1e74bdffa0 Merge branch 'main' into timing 2025-03-19 22:28:46 -07:00
Saleem Abdulrasool
8e10b00984 Merge pull request #80148 from weliveindetail/windrd-unblock-nightly
utils: temporarily ignore test failure for Android runtimes
2025-03-19 21:42:57 -07:00
Saleem Abdulrasool
1b1274f7c1 Merge pull request #80125 from hjyamauchi/foundationmacros
Fix FoundationMacro build failure in ARM64 cross-build
2025-03-19 20:13:36 -07:00
Saleem Abdulrasool
440ebee0bb utils: collect more build times
Add time collection for the test execution. This will allow us to
immediately see in the summary the time expenditure.
2025-03-19 16:54:43 -07:00
Saleem Abdulrasool
89e9681592 utils: remove extra timing data collection
The timing data collection is now homed under `Invoke-BuildStep`.
`Build-SPMProject` is an implementation detail of the build step and is
timed at a higher level.
2025-03-19 16:53:35 -07:00
Saleem Abdulrasool
befc15e6df Merge pull request #80082 from compnerd/isolated
utils: split `Build-*` into `Build-` and `Test-`
2025-03-19 16:31:04 -07:00
Stefan Gränitz
123b25d20a utils: temporarily ignore test failure for Android runtimes 2025-03-20 00:16:56 +01:00
Saleem Abdulrasool
f20ff950ec utils: split Build-Dispatch into Build- and Test- function
Split up the test routines from the build routines. This is motivated by
the desire to simplify (remove logic flow) and to help get more accurate
timing data.
2025-03-19 11:13:43 -07:00
Saleem Abdulrasool
ae1f4cae7b utils: split Build-Foundation into Build- and Test- function
Split up the test routines from the build routines. This is motivated by
the desire to simplify (remove logic flow) and to help get more accurate
timing data.
2025-03-19 11:13:42 -07:00
Saleem Abdulrasool
789bd1fc0d utils: split Build-Testing into Build- and Test- function
Split up the test routines from the build routines. This is motivated by
the desire to simplify (remove logic flow) and to help get more accurate
timing data.
2025-03-19 11:12:03 -07:00
Saleem Abdulrasool
2c02471271 utils: split Build-LLBuild into Build- and Test- function
Split up the test routines from the build routines. This is motivated by
the desire to simplify (remove logic flow) and to help get more accurate
timing data.
2025-03-19 11:12:03 -07:00
Saleem Abdulrasool
e7c8dc66ad utils: remove extraneous parameter (NFC)
The callee does not take any parameters, remove the extra leftover
parameter.
2025-03-19 11:12:03 -07:00
Hiroshi Yamauchi
2ff8806fa8 Fix FoundationMacro build failure in ARM64 cross-build 2025-03-19 10:54:58 -07:00
Saleem Abdulrasool
6ead8cb5bd utils: correct straggling function replacement 2025-03-19 09:00:06 -07:00
Alex Hoppen
d870056efd Merge pull request #80076 from ahoppen/foundation-tests-debug
[tests] Run swift-(corelibs-)foundation tests in debug configuration on Windows
2025-03-19 08:16:30 -07:00
Saleem Abdulrasool
f457d9ccd4 Merge pull request #80099 from hjyamauchi/minjectverbose
Make minject not verbose
2025-03-18 21:28:23 -07:00
Alex Hoppen
3557451e54 [tests] Run swift-(corelibs-)foundation tests in debug configuration on Windows
This should improve CI times because building in debug configuration instead of release configuration is significantly faster. Since we don’t install the build of swift-(corelibs-)foundation using SwiftPM into the toolchain, this doesn’t have any performance impact on users of the toolchain.
2025-03-18 14:11:38 -07:00
Hiroshi Yamauchi
187c7981c5 Make minject not verbose 2025-03-18 13:15:04 -07:00