Commit Graph

409 Commits

Author SHA1 Message Date
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
Hiroshi Yamauchi
7997dd3401 Limit the Swift link job pool size to 4
Mitigate the OOM thrashing and machine reboot issue during the
compiler build with debug info enabled on Windows.
2025-03-07 15:08:59 -08:00
Saleem Abdulrasool
1d938b729e Merge pull request #79770 from compnerd/qualified
utils: require a fully qualified WinSDK version
2025-03-05 08:39:22 -08:00
Hiroshi Yamauchi
6f132fddc0 Merge pull request #79768 from hjyamauchi/lnk1322
Work around the LNK1322 issue in swift-build on windows
2025-03-05 04:13:01 -08:00
Hiroshi Yamauchi
fcb81f9669 Work around the LNK1322 issue in swift-build on windows
https://github.com/swiftlang/swift/issues/79740
2025-03-04 21:51:22 -08:00
Saleem Abdulrasool
d591be02ec utils: require a fully qualified WinSDK version
Do not attempt to complete the version number, instead require the user
to fully specify the version, e.g. 10.0.26000.0.
2025-03-04 12:33:45 -08:00
Saleem Abdulrasool
0bb5ec785a utils: cleanup module triple computation
Use `swiftc` rather than `swift` as the latter is the driver driver
driver. This simplifies the logic and should improve the computation
path.
2025-03-04 09:29:43 -08:00
Hiroshi Yamauchi
5bf5d20845 Merge pull request #79716 from hjyamauchi/mimallocpatching
Fix mimalloc patching
2025-03-03 23:55:49 -08:00
Hiroshi Yamauchi
ac846b515d Fix mimalloc patching 2025-03-03 16:48:32 -08:00
Saleem Abdulrasool
4c39fcb6c9 utils: target prefix ds2, use a more standard layout
This moves ds2 into a separate directory for ds2 rather than keeping it
at a top level directory named after the target triple. It also adopts
the GCC style target triple prefix. Finally, adjust the build to perform
the installation to allow building a complete toolchain image.
2025-03-03 08:50:49 -08:00
Saleem Abdulrasool
351d66a365 Merge pull request #79615 from compnerd/ndks
utils: begin supporting new NDKs when building
2025-02-27 21:08:35 -08:00
Saleem Abdulrasool
da11b51a5f utils: begin supporting new NDKs when building
Add support for multiple NDKs for Android SDKs to be built. This is in
preparation to migrate to r27c as the default NDK to use.
2025-02-27 10:02:29 -08:00
Saleem Abdulrasool
06c52ce587 utils: add the rules to build swift-build
Add a smoke test build of swift-build. While this is not integrated into
SPM, it allows us to ensure that swift-build is able to be built with
the just built compiler on Windows.
2025-02-26 19:57:12 -08:00
Saleem Abdulrasool
7591beb3c0 utils: rework Build-Testing to exclude -Test
Simplify the `Build-Testing` call to simply build swift testing for
distribution. The testing support was never implemented and there was
more duplication than necessary.
2025-02-26 08:40:04 -08:00
Saleem Abdulrasool
c80b750c57 utils: split Build-XCTest into Build-XCTest and Test-XCTest
This split reduces the logic and changes nearly all the handling into
path computation. It also will enable us to migrate towards avoiding a
separate staging step.
2025-02-26 08:40:02 -08:00
Ben Barham
c6d1060778 Merge pull request #79543 from bnbarham/always-use-local-deps
[Build] Make sure to always use local package dependencies on Windows
2025-02-26 00:33:36 -08:00