Commit Graph

474 Commits

Author SHA1 Message Date
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
Saleem Abdulrasool
6d0a40c169 utils: adjust missed helpers in build.ps1
These were missed in the conversion from host/build/target to host based
builds.
2025-03-18 09:13:02 -07:00
Saleem Abdulrasool
179dc983b7 utils: version testing frameworks
This adjusts the install location for the testing frameworks to be
versioned with the product version. These are somewhat closely tied to
the compiler, and it makes sense to tie them to the product version.
2025-03-18 08:59:43 -07:00
Saleem Abdulrasool
7940b24ec7 utils: remove Host, Build, Target duplication
Adopt the `$Arch` parameter uniformly. If something is built for the
host we can use `$HostArch` explicitly (which identifies the
environment that the toolchain will run on). `$BuildArch` gives us an
explicit architecture when building for the machine where the toolchain
is being built. For the target libraries, we simply pass in the
appropriate `$Arch` value.
2025-03-17 17:50:21 -07:00
Saleem Abdulrasool
ef1a1d1644 Merge pull request #80037 from swiftlang/revert-79944-windrd-update-default-sdks
Revert "utils: Update default Android SDKs in build.ps1"
2025-03-16 16:25:36 -07:00
Jeff
644462cb5e utils: Improve build.ps1 build summary report. (#80026)
* utils: Display total time taken in build Summary.

* utils: Add % to summary data in build.ps1.

* Cleanup and formatting.
2025-03-16 16:23:02 -07:00
Saleem Abdulrasool
2f60c73ad6 Merge pull request #80039 from compnerd/crossed
utils: explicitly cross-compile the experimental runtimes
2025-03-16 15:04:47 -07:00
Stefan Gränitz
d6ac1eca74 [windows][toolchain] Run non-executable Swift Runtime tests for Android (#79185)
We cross-compile the Swift runtime libs for the Android SDKs in the Windows toolchain. This patch adds a build step that runs non-executable tests for them.
2025-03-16 22:52:38 +01:00
Saleem Abdulrasool
e33bf2a464 Merge pull request #80012 from jeffdav/win-build-validate-pinned-params
utils: Validate Pinned params in build.ps1.
2025-03-15 20:56:20 -07:00
Saleem Abdulrasool
74ab62c00c utils: explicitly cross-compile the experimental runtimes
Pass additional parameters to setup the cross-compilation for the
experimental runtime.
2025-03-15 16:56:53 -07:00
Saleem Abdulrasool
2499f6937f Revert "utils: Update default Android SDKs in build.ps1 (#79944)"
This reverts commit c4a472eccf.
2025-03-15 08:55:53 -07:00
Saleem Abdulrasool
b4a2908fb5 Merge pull request #79830 from jeffdav/win-build-timing
utils: Cleanup timing functions in build.ps1.
2025-03-14 12:35:00 -07:00
Saleem Abdulrasool
d74c7681ef Merge pull request #79932 from compnerd/unstage
utils: adjust for new install rules for testing frameworks
2025-03-14 09:46:12 -07:00
Jeff
93f9db67f8 utils: Hoist WiX artifact definition. (#79953)
* utils: Hoist WiX artifact definition.

* Fix merge damage from rebase.
2025-03-13 23:05:20 -07:00
Jeff
31789764b8 utils: Validate Pinned params in build.ps1. 2025-03-13 22:57:59 -07:00
Jeff
6e18773f58 PR feedback. 2025-03-13 12:41:37 -07:00
Jeff
cf47a47a63 Accurately log arch + platform. 2025-03-13 12:41:37 -07:00
Jeff
cf1deb2c5e Fix missing variable. 2025-03-13 12:41:37 -07:00
Jeff
a9b67b16b3 PR Feedback. 2025-03-13 12:41:37 -07:00
Jeff
dc068bb534 PR Feedback. 2025-03-13 12:41:37 -07:00
Jeff
6983a3beef utils: Cleanup timing functions in build.ps1. 2025-03-13 12:41:37 -07:00
Stefan Gränitz
c4a472eccf utils: Update default Android SDKs in build.ps1 (#79944) 2025-03-13 18:01:17 +01:00
Saleem Abdulrasool
bbf2ef15e7 utils: adjust for new install rules for testing frameworks
Clean up the testing framework installation to take advantage of the new
install rules and avoid double staging.
2025-03-13 09:02:07 -07:00
Saleem Abdulrasool
b9e9881973 Merge pull request #79935 from compnerd/xctest-install
utils: adjust for XCTest install rules
2025-03-13 08:45:48 -07:00
Saleem Abdulrasool
87135c3b73 Merge pull request #79940 from jeffdav/win-build-cleanup
utils: Fix warnings in build.ps1.
2025-03-12 21:58:38 -07:00
Jeff
9d013828ec utils: Hoist python and python wheel definitions. 2025-03-12 12:13:37 -07:00
Stefan Gränitz
c882b57746 utils: Move libs to arch-specific SDK directories to avoid multi-lib error with lld (#79913) 2025-03-12 17:23:04 +01:00
Saleem Abdulrasool
95ea0108ef Merge pull request #79933 from compnerd/concise
utils: remove extraneous arch printing for build.ps1
2025-03-12 08:59:56 -07:00
Hiroshi Yamauchi
0c62d1f40a Merge pull request #79853 from hjyamauchi/oom2
Limit the Swift link job pool size to 4
2025-03-12 08:39:25 -07:00
Jeff
45be4ab3be utils: Fix warnings in build.ps1. 2025-03-11 22:51:41 -07:00
Saleem Abdulrasool
d80f4e9db4 utils: adjust for XCTest install rules
XCTest is now installing the modules into the right location with
the thick swiftmodule format. Adjust the expectation in build.ps1.
2025-03-11 18:04:10 -07:00
Saleem Abdulrasool
2afa639e02 utils: remove extraneous arch printing for build.ps1
We now build into the triple prefixed directory, remove the extraneous
printing.
2025-03-11 16:11:25 -07:00
Saleem Abdulrasool
d75b7cda2f Merge pull request #79627 from compnerd/sdk-takes-stage
utils: avoid double staging the SDK
2025-03-10 15:13:40 -07:00
Saleem Abdulrasool
8dc0d3206c utils: avoid double staging the experimental SDK
Install the experimental SDK directly into the final install/stage so
that we have a complete working toolchain that we can directly package.
2025-03-08 14:41:42 -08:00
Saleem Abdulrasool
15b4d43463 utils: avoid double staging the SDK
Directly install the SDK into the final location. This avoids moving
files around after installation, improving incremental builds.
2025-03-08 14:41:37 -08:00
Saleem Abdulrasool
03f96324e2 Merge pull request #79855 from jeffdav/win-build-invoke-program 2025-03-08 12:59:30 -08:00
Jeff
684703c753 utils: Spell $env consistently. 2025-03-07 15:41:21 -08:00
Jeff
5c31047cfc utils: cleanup Invoke-Program in build.ps1. 2025-03-07 15:34:00 -08:00