Commit Graph

8541 Commits

Author SHA1 Message Date
Stefan Gränitz
0bccec69b6 [lldb] Skip test TestThreadSpecificBreakpoint on Windows (#79737)
Test timed out in Swift CI, so we should consider it flaky
2025-03-13 15:10:35 -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
9c2800cb01 Merge pull request #79977 from compnerd/presets
utils: repair the XCTest build configuration
2025-03-13 01:02:46 -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
Saleem Abdulrasool
51fcb45b95 utils: repair the XCTest build configuration
Swift Package Manager has grown a dependency on swift-testing and
swift-testing-macros. Ensure that we build these dependencies when
testing.
2025-03-12 18:34:14 -07:00
Evan Wilde
4ca2eb442d Build Preset: Bootstrap Stage-0 Toolchain
This preset builds the compiler and standard library on a system without
an existing Swift.

Note, there are many issues with it and it won't be able to pass tests.
It is an intermediate product that will need to build a compiler with
the Swift sources. The stage-0 compiler won't be able to build the
driver as the driver depends on Foundation, which requires macro support
and the stage-0 compiler does not have macro support. It will need to
build swiftsyntax though to give the stage-1 compiler macro support.
The stage-1 compiler then can build a stage-2 toolchain with most of the
libraries and runtimes. That stage-2 toolchain should then be capable of
building the full nightly toolchain package.
2025-03-12 12:31:45 -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
2cf3c3eac5 Merge pull request #79867 from jerryjrchen/update-vim-syntax
Match freestanding macros in vim syntax
2025-03-10 21:50:18 -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
Jerry Chen
2ffccc286f Match freestanding macros in vim syntax
Any valid name beginning with `#` that isn't already a preprocessor
macro is now considered a freestanding macro. Previously, only
preprocessor macros were handled in the vim syntax file, e.g. `#if`.

For example, this properly handles the syntax for the `#expect` and the
`#require` macros used in Swift Testing.
2025-03-08 12:46:19 -08:00
Saleem Abdulrasool
6acf63185c Merge pull request #79832 from jeffdav/win-build-env 2025-03-08 04:09:38 -08:00
Michael Gottesman
243cfe0719 Merge pull request #79804 from gottesmm/pr-f26aec536f9d333150b49e0faf50a70a9a26ac53
Add a flag to enable-new-runtime-build that enables the new runtime build
2025-03-07 16:03:49 -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
Alex Hoppen
67f312cc2f Merge pull request #79834 from ahoppen/remove-syntax-lint
[build-script] Remove option to lint swift-syntax
2025-03-07 06:42:29 -08:00
Alex Hoppen
a4b8878787 Merge pull request #79827 from ahoppen/remove-swiftsyntax-verify-documentation
Remove the documentation verification step
2025-03-07 06:42:07 -08:00
Alex Hoppen
8ad0ca8c17 Remove the documentation verification step
This step is now performed by GitHub Actions.
2025-03-06 18:40:55 -08:00
Alex Hoppen
7256a92775 [build-script] Remove option to lint swift-syntax
This is being verified by GitHub Actions now as of https://github.com/swiftlang/swift-syntax/pull/2998.
2025-03-06 18:38:47 -08:00
Michael Gottesman
7418b42215 Add a flag to enable-new-runtime-build that enables the new runtime build.
What is nice about this is that by not using extra-cmake-args, we can avoid
passing this into LLVM as well when attempting to reproduce failures on the bots
(thus avoiding having to rebuild LLVM as well).
2025-03-05 14:10:26 -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
f2bbdc9b4b Merge pull request #79744 from compnerd/ds2
utils: target prefix ds2, use a more standard layout
2025-03-03 15:57:18 -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
Meghana Gupta
3fe1029ef8 [NFC] Reorganize and rename ArrayBoundsCheckOpts.cpp 2025-02-28 09:50:58 -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