Commit Graph

8999 Commits

Author SHA1 Message Date
Jake Petroules
2ee42b86ad update_checkout: update swift-subprocess to 0.1 tag (#84269) 2025-09-13 01:22:09 -07:00
Jake Petroules
eb7b8c0fd7 update_checkout: update swift-toolchain-sqlite to 1.0.7 tag (#84270) 2025-09-13 00:29:58 -07:00
Saleem Abdulrasool
d8879e6284 Merge pull request #84229 from compnerd/hoisting
build.ps1: hoist `Build-CompilerRuntimes` out of `Build-SDK`
2025-09-12 12:16:20 -07:00
Saleem Abdulrasool
6fc7e58625 build.ps1: hoist Build-CompilerRuntimes out of Build-SDK
This builds the compiler runtime (builtins) and the sanitizers. These
are part of the toolchain distribution rather than the SDK. Shuffle the
build around to further thin out `Build-SDK`.
2025-09-11 17:06:09 -07:00
Saleem Abdulrasool
3ab7c59b5b build.ps1: use SDKROOT more consistently
When building the SDKs, we have already computed the SDK root once.
Reuse the value rather than re-computing it.
2025-09-11 16:56:41 -07:00
Saleem Abdulrasool
ab82c6f0db build.ps1: make windows SDKs optional
This treats Windows similarly to Android and introduces a new `-Windows`
option to build the Windows SDKs.
2025-09-11 09:46:43 -07:00
Saleem Abdulrasool
790bf32394 build.ps1: rename Build-Sanitizers to build-CompilerRunttime
This is more reflective of what the build accomplishes: it builds
compiler-rt's builtins and the sanitizer runtimes.
2025-09-10 09:54:30 -07:00
Saleem Abdulrasool
18487c289c build.ps1: extract third party dependency builds
Hoist the third party dependency builds before either the SDK loops.
This prepares for the elimination of the legacy SDK builds.
2025-09-09 10:41:28 -07:00
Saleem Abdulrasool
5f3120b201 Merge pull request #84163 from compnerd/macros
build.ps1: isolate bootstrapping macros
2025-09-09 10:30:24 -07:00
Saleem Abdulrasool
b72ef8eb88 Merge pull request #84155 from compnerd/simplify
build.ps1: simplify `Build-Foundation`
2025-09-08 22:43:31 -07:00
Saleem Abdulrasool
7ff21a5e56 build.ps1: isolate bootstrapping macros
Isolate the macros used for building the SDK and the macros built for
distribution. This extricates the macros from the SDK build which is
required for removing the legacy SDK build.
2025-09-08 22:06:42 -07:00
Saleem Abdulrasool
640db7a8b5 Update build.ps1 2025-09-08 17:03:32 -07:00
Charles Zablit
ca35ad7b0f Merge pull request #83588 from charles-zablit/charles-zablit/windows/move-llvm-overrides-to-llvm-repo
[windows] move windows-llvm-lit-test-overrides.txt to the llvm-project repository
2025-09-08 20:53:17 +01:00
Saleem Abdulrasool
13b4b05045 build.ps1: simplify Build-Foundation
`Build-Foundation` will not be retained once the legacy SDK is
eliminated. This simplifies the logic to handle the current invocation
only.
2025-09-08 09:05:30 -07:00
Charles Zablit
763d71d741 Merge pull request #84079 from charles-zablit/charles-zablit/update-checkout/add-locked-repository-check
[update-checkout] add a check for locked repositories
2025-09-05 17:28:29 +01:00
Saleem Abdulrasool
61cb1a9126 Merge pull request #84096 from compnerd/computation
build.ps1: clean up SDKROOT references
2025-09-04 09:11:58 -07:00
Ahmed Elrefaey
9d1436c1c8 [IDE] [Signature Help] Add basic signature help request to SourceKit (#83378) 2025-09-04 10:09:02 +01:00
Mishal Shah
c75932b89f Merge pull request #83748 from swiftlang/bump-version-6.3
Bump the Swift version to 6.3
2025-09-03 21:18:05 -07:00
Saleem Abdulrasool
54ca8963f1 build.ps1: clean up SDKROOT references
Use the pre-computed value rather than compute the value twice.
2025-09-03 16:29:29 -07:00
Charles Zablit
1122439663 [update-checkout] add a check for locked repositories 2025-09-03 13:18:56 +01:00
Michael Gottesman
95dc7df0c6 Merge pull request #84059 from gottesmm/pr-01c0347486acb63c846ab6808b78c39ce86b404a
[git-clang-format-all] Apply fixup commits one at a time.
2025-09-02 15:14:31 -07:00
Mishal Shah
720c1cf0e8 Merge pull request #83360 from kateinoigakukun/yt/update-wasi-libc-27
[wasm] Update wasi-libc to version 27
2025-09-02 10:27:06 -07:00
Michael Gottesman
62af694fcb [git-clang-format-all] Apply fixup commits one at a time.
I discovered while using this locally that it is possible to get a series of
rebased commits that cause the rebase to failure. The problem goes away when one
applies the changes one at a time rather than all at once. This is also just a
more robust way to do this since we are not relying on git-clang-format's hunk
logic and git's rebase hunk logic to be in sync.
2025-09-02 09:27:44 -07:00
Charles Zablit
2ecb65d60a [windows] move llvm test overrides to the llvm-project repository 2025-09-01 16:04:53 +02:00
Saleem Abdulrasool
090bc168b8 Merge pull request #84016 from compnerd/extraction
build.ps1: extract `SDKROOT` in `Build-ExperimentalSDK`
2025-08-31 12:21:30 -07:00
Owen Voorhees
57062d85ae Merge pull request #84031 from owenv/owenv/sourcekit-remarks 2025-08-31 09:47:02 -07:00
Anthony Latsis
c720989b01 [presets] Escalate uninitialized warnings to errors in macOS smoke test
See
https://clang.llvm.org/docs/DiagnosticsReference.html#wuninitialized.
2025-08-31 11:27:36 +01:00
Owen Voorhees
593346ab0d Include remarks in SourceKit diagnostics responses 2025-08-30 22:17:00 -07:00
Saleem Abdulrasool
9c45006927 build.ps1: remove some unnecessary flags
Adjust the build to remove some flags for `swift build` that are no
longer necessary now that we stage the toolchain better and setup the
environment, we can simplify the build.
2025-08-29 17:07:51 -07:00
Saleem Abdulrasool
3897b89d70 build.ps1: extract SDKROOT in Build-ExperimentalSDK
Extract a variable for the re-computed value of the SDKROOT.
2025-08-29 13:14:58 -07:00
Saleem Abdulrasool
0b3df2555d Merge pull request #83881 from Steelskin/fabrice/ignore-linker-warning-long-sections
Runtime: Ignore long section names linker warnings
2025-08-28 09:54:49 -07:00
Michael Gottesman
9816de34f9 Merge pull request #83957 from gottesmm/pr-23e7a796bc7850ada5b3d384e4de237e3695b525
[tools] Create a new script called git-clang-format-all.zsh
2025-08-27 22:37:45 -07:00
Michael Gottesman
9c07782fbc [tools] Create a new script called git-clang-format-all.zsh
This is a small zsh script that automates running git-clang-format + git rebase
squash on a branch. The intent is that one can just work on ones branch, run
this before creating a PR on github and move on with life. The assumption is
that ones tree is clean without any changes so we should be able to apply
git-clang-format cleanly by applying it to each commit one by one working
backwards from ToT to the passed in commit's parent commit.
2025-08-27 12:57:37 -07:00
Saleem Abdulrasool
52f04d0d34 build.ps1: extract SDKROOT for multi-reference use
This should allow us to switch SDKs for the toolchain build.
2025-08-27 09:40:43 -07:00
Fabrice de Gans
854a250c20 Disable longsections warning in more cases 2025-08-26 08:47:02 -07:00
Saleem Abdulrasool
16b71df789 Merge pull request #83867 from mhegazy/mimalloc-patch-fix
Fix order of building mimalloc with `-IncludeNoAsserts`
2025-08-25 20:20:07 -07:00
Jake Petroules
51683c4931 Fix the Swift for macOS installer to encode a minimum OS version for installation (#83273)
Right now it defaults to macOS 10.11, which is of course far below the
intended supported version.
2025-08-25 11:06:32 -07:00
Jake Petroules
b2ad48352c Remove some obsolete properties from the macOS ToolchainInfo.plist (#83274)
- CompatibilityVersionDisplayString isn't required and it's misleading
to write Xcode 8 here, which is far below the actual compatibility
- ENABLE_BITCODE is now ignored by Swift Build
- SWIFT_DISABLE_REQUIRED_ARCLITE is now ignored by Swift Build
- SWIFT_LINK_OBJC_RUNTIME doesn't need to be set as it's already set to
an appropriate per-platform default
2025-08-25 10:52:37 -07:00
Charles Zablit
7c5c94f975 Merge pull request #83615 from charles-zablit/charles-zablit/windows/update-to-3.10.1
[windows] upgrade to Python 3.10.1
2025-08-25 18:43:54 +01:00
Fabrice de Gans
d080e2f405 Move the longsections argument to build.ps1 2025-08-25 09:42:10 -07:00
Saleem Abdulrasool
fdb1f93ca4 Merge pull request #83852 from compnerd/android
build.ps1: add a workaround for Android build break
2025-08-24 05:00:24 -07:00
Saleem Abdulrasool
c4862a6238 Merge pull request #83879 from compnerd/lto
build.ps1: introduce the ability to do LTO
2025-08-23 23:22:19 -07:00
Ben Barham
9be05988fb Merge pull request #83889 from bnbarham/try-skip-platform-connect
[lldb] Skip TestPlatformConnect.py which times out on Windows
2025-08-23 12:43:25 -07:00
Ben Barham
5b3a2cabc7 [lldb] Skip TestPlatformConnect.py which times out on Windows 2025-08-23 07:59:43 -07:00
Saleem Abdulrasool
ec394840b7 Merge pull request #83666 from Steelskin/fabrice/build-corelibs-dispatch-arch-subdir
build: Install dispatch libraries in arch subdir
2025-08-22 13:40:47 -07:00
Saleem Abdulrasool
6aedcc5745 build.ps1: introduce the ability to do LTO
While it is possible to do LTO with MSVC, we cannot do that just yet.
This at least allows some experimentation with LTO with clang-cl.
2025-08-22 11:56:36 -07:00
Mohamed Hegazy
effe6d6781 Split Build-mimalloc into two functions 2025-08-21 19:20:52 -07:00
Saleem Abdulrasool
3224bb4e52 build.ps1: add a workaround for Android build break
The C++ driver will not add in the architecture to the library search
path when building for Android on Windows. Workaround this by
explicitly adding in the addition library search path. Once the early
swift-driver is enabled, this should be possible to remove.
2025-08-21 12:29:52 -07:00
Saleem Abdulrasool
99462a67b5 Merge pull request #83839 from compnerd/stage
build.ps1: stage the experimental SDK runtime
2025-08-21 08:55:18 -07:00
Saleem Abdulrasool
20c23718ad build.ps1: stage the experimental SDK runtime
Setup the experimental runtime image. We currently inject a
`.experimental` suffix to isolate it from the legacy image. This is a
staging artifact and will be removed once we remove the legacy runtime
build.
2025-08-20 13:03:57 -07:00