Commit Graph

8369 Commits

Author SHA1 Message Date
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
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
Saleem Abdulrasool
2760b0ad8f Merge pull request #79609 from compnerd/build-and-test
utils: clean up some of the build and test rules for XCTest and Testing
2025-02-26 15:03:41 -08:00
Adrian Prantl
b20a93b193 Merge pull request #79583 from adrian-prantl/swift-mode
[swift-mode] require flymake-proc
2025-02-26 12:40:11 -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
Alastair Houghton
4c0e141ccc Merge pull request #79390 from al45tair/eng/PR-144497613
[Backtracing] Add warning suppression option, enable it for tests.
2025-02-25 17:51:28 +00:00
Saleem Abdulrasool
b1207eda7e utils: provide structure to settings
Use a structural definition of the settings and convert them to the
appropriate serialised format as a delayed operation. This makes it
easier to read the settings and modify them as we iterate on the
toolchain.

Take the opportunity to extract the PList conversion into a helper
function.
2025-02-24 15:32:32 -08:00
Saleem Abdulrasool
6c74271269 Merge pull request #79535 from compnerd/platform-staging
utils: remove per-arch `PlatformInstallRoot`
2025-02-24 15:28:49 -08:00
Adrian Prantl
bfc70044d9 [swift-mode] require flymake-proc 2025-02-24 11:42:00 -08:00
Alastair Houghton
0bc76dae80 [Backtracing] Add warning suppression option, enable it for tests.
The backtracing code will warn you if you attempt to forcibly enable
backtracing for a privileged executable.  This is apparently upsetting
the Driver/filelists.swift test.

Since we want to force it on for tests, so that we will definitely get
backtraces, add an option to suppress warning messages, and turn that
on for tests as well.

rdar://144497613
2025-02-24 12:55:16 +00:00
Jeff
11027b8ba2 utils: remove unused variables in build.ps1. (#79531) 2025-02-22 11:32:09 -08:00
Ben Barham
bab8fd84b3 [Build] Make sure to always use local package dependencies on Windows 2025-02-21 10:59:56 -08:00
Saleem Abdulrasool
28256e828f utils: remove per-arch PlatformInstallRoot
This further migrates towards a shared installation of the platform and
SDKs staging. This helps ensure that we are properly creating additional
SDKs without overwriting components and can share components across
builds. It also avoids unnecessary duplicated work.
2025-02-21 08:43:52 -08:00
Jeff
3115f38053 utils: cleanup compares against null in build.ps1 (#79533)
* utils: cleanup compares against null in build.ps1
* Further cleanup.

Co-authored-by: Saleem Abdulrasool <compnerd@compnerd.org>
2025-02-20 23:31:34 -08:00
Saleem Abdulrasool
1af236e7e6 Merge pull request #79505 from compnerd/prefix
utils: pass static library prefix for Swift to Swift
2025-02-20 23:27:11 -08:00
Jeff
b44367e753 util: Add -Variant param to build.ps1 for building Asserts | NoAsserts. (#79313)
* util: Add -Variant param to build.ps1 for building Asserts | NoAsserts.

* Special case BinaryCache path concatenation.

* Fix merge damage.

* Cleanup.
2025-02-20 18:06:31 -08:00
Saleem Abdulrasool
db7b013bc6 Update update-checkout-config.json (#79117)
* Update update-checkout-config.json

Update swift-system requirement to 1.4.0. This is motivated by swift-build which requires swift-system 1.4.0. More importantly, the API surface between 1.3.0 and 1.4.0 changed including the API usage that is required by swift-build.

* Update update-checkout-config.json

Update to 1.4.1
2025-02-20 13:43:16 -08:00
Konrad `ktoso` Malawski
e8668684a1 Merge pull request #79411 from amartini51/typo_144059094
Remove double word ("a a" and "the the")
2025-02-20 13:05:06 +09:00
Saleem Abdulrasool
d2d719c3f3 utils: pass static library prefix for Swift to Swift
Update the build invocation for the experimental swift runtime to ensure
that we generate the libraries with the expected names.
2025-02-19 13:10:41 -08:00
Michael Gottesman
473753a98d [swift_snapshot_tool] Turn off dry_run from bisect_toolchains.swift 2025-02-18 14:17:29 -08:00
Owen Voorhees
f3239c3d92 Merge pull request #79426 from swiftlang/owenv/swift-build-toolchain-info
Flesh out Windows ToolchainInfo.plist
2025-02-17 18:52:03 -08:00
Saleem Abdulrasool
28a77157ab Merge pull request #79363 from compnerd/max-path-ex
utils: use longer paths for build trees
2025-02-17 18:39:27 -08:00