Commit Graph

8626 Commits

Author SHA1 Message Date
Yuta Saito
94b40d1bde Merge pull request #81799 from kateinoigakukun/yt/unify-wasmllvmruntime-build-dir
[wasm] Unify WasmLLVMRuntimeLibs and WasmThreadsLLVMRuntimeLibs build directories
2025-05-28 23:31:37 +09:00
Yuta Saito
1592c9e2b3 [wasm] Unify WasmLLVMRuntimeLibs and WasmThreadsLLVMRuntimeLibs build directories
Having separate build product does not make sense and just adds
complexity to manage build directory names.
2025-05-28 04:14:23 +00:00
Stephen Canon
592d72bba9 Concrete SIMD.init(repeating:) and SIMD.init(lowHalf:highHalf:) optimizations (#81766)
WIP to add more overloads to optimize SIMD codegen on concrete types.
Here we do:

- init(repeating:)
- init(lowHalf:highHalf:)

These are always inlined, even in debug, since LLVM knows how to lower
them to one or two instructions on the targets that we care about.
2025-05-27 15:15:13 -04:00
Saleem Abdulrasool
9040fab1d1 utils: adjust the "platform" install rules
Rename `Install-Platform` to `Install-SDK` as it adjusts the SDK layout.
This is something that we should work towards minimising and ensuring
that the install rules in CMake properly stage the files. In the mean
time, this allows us to properly structure the SDK.

Alter the parameters to avoid the explicit OS, extracting it from the
platform set provided. Additionally provide an SDK identifier to allow
us to handle the experimental SDKs as well.
2025-05-26 13:39:21 -07:00
Saleem Abdulrasool
29a9fb0ecb Merge pull request #81745 from compnerd/summary
utils: fix summary emission with caching
2025-05-25 02:02:27 -07:00
Saleem Abdulrasool
331f0982b7 Merge pull request #81763 from compnerd/settings
utils: write SDKSettings for experimental SDKs
2025-05-24 17:48:55 -07:00
Saleem Abdulrasool
5398cc8f90 utils: write SDKSettings for experimental SDKs
Add support to emit the SDKSettings.json for the experimental SDK. This
ensures that the we have the settings available for the tools when using
this SDK.
2025-05-24 08:44:30 -07:00
Saleem Abdulrasool
89042cd8c0 utils: normalise the names as per expectations
Adjust the platform identifier spelling to the expected case.
2025-05-24 08:43:25 -07:00
Saleem Abdulrasool
36859c0ae8 Merge pull request #81734 from compnerd/unification
utils: make unify SDKSettings plist and json
2025-05-23 15:35:36 -07:00
Saleem Abdulrasool
548bff6c78 utils: fix summary emission with caching
This updates the SCCache invocation for the summary printing which needs
to be adjusted for the use of the downloaded sccache.
2025-05-23 09:09:33 -07:00
Saleem Abdulrasool
a478db9022 Merge pull request #81733 from compnerd/sccache
utils: download sccache for Windows
2025-05-23 07:53:35 -07:00
Saleem Abdulrasool
b3b9924a42 Merge pull request #81732 from compnerd/expansion
utils: extend the experimental runtime build
2025-05-23 07:52:54 -07:00
Charles Zablit
9ed8b664fd Merge pull request #81071 from charles-zablit/charles-zablit/windows/fix-psutil-install-arm64
[Windows] fix psutil installation on arm64
2025-05-23 09:56:09 +01:00
Saleem Abdulrasool
0d32d8be69 utils: make unify SDKSettings plist and json
Alter the PList and JSON to match contents. While the primary consumer
for the PList is SPM, this synchronises the two just in case. This is in
response to feedback from @jakepetroules.
2025-05-22 21:49:50 -07:00
Saleem Abdulrasool
9ae142c9d3 Merge pull request #81724 from compnerd/settings
utils: flesh out SDKSettings.json further on Windows
2025-05-22 21:43:09 -07:00
Saleem Abdulrasool
4539e0ab25 utils: download sccache for Windows
When `-EnableCaching` is specified, download a specific version of
sccache to enable easy enablement.
2025-05-22 21:28:13 -07:00
Saleem Abdulrasool
7b17c47a2c utils: extend the experimental runtime build
This adjusts the experimental runtime build to include the overlay,
StringProcessing, Synchronization. This is a first step towards getting
a sufficient amount of the SDK overlay built so that we can start
statically linking a real world program (swift-driver).
2025-05-22 20:59:38 -07:00
Evan Wilde
a313a63bba Merge pull request #81662 from etcwilde/ewilde/aarch64-freebsd
Fix the ARM architecture on FreeBSD
2025-05-22 20:21:17 -07:00
Saleem Abdulrasool
77fdaa9dd7 utils: flesh out SDKSettings.json further on Windows
Add additional properties into the SDKSettings.json that we generate.
2025-05-22 16:09:09 -07:00
Evan Wilde
6d85ef58ef Merge pull request #81622 from etcwilde/ewilde/wmo-swift-testing
Build Swift-Testing with WMO
2025-05-22 13:07:25 -07:00
Karoy Lorentey
a7830d754a Merge pull request #80870 from lorentey/stdlib-version-6.3
[stdlib][runtime] Establish Swift Stdlib/runtime version 6.3
2025-05-21 17:48:22 -07:00
nate-chandler
bbe9f65c76 Merge pull request #81654 from nate-chandler/update-checkout/20250520/1
[update-checkout] Gracefully degrade timestamp matching.
2025-05-21 10:36:50 -07:00
Evan Wilde
fd2ba8b95d Fix the ARM architecture on FreeBSD
The 64-bit ARM architecture spelling on FreeBSD is aarch64, not arm64.
This results in a build failure about a missing
`freebsd/arm64/swiftrt.o` while building the runtimes.
2025-05-20 21:38:41 -07:00
Nate Chandler
77376b6cfc [update-checkout] Gracefully degrade time match.
Previously, when invoking the script with match-timestamp, if the
refspec was absent, the find_rev_by_timestamp function would throw an
exception and the script would hang forever.

Here, it is first checked via `git rev-parse --verify $REFSPEC` that the
refspec actually exists in the target repo.  If it does not, the refspec
is just omitted from the command, giving the latest commit before the
currently checked out one.
2025-05-20 15:56:10 -07:00
Charles Zablit
1b549b66a7 fix dependency issue 2025-05-20 11:17:35 +01:00
Evan Wilde
5f2b0022d1 Build Swift-Testing with WMO
This tells build-script to build Swift-testing with WMO.
This results in a faster build products, but is also necessary for
configurations using the legacy swift driver, which would emit an
invalid swift interface in non-WMO builds.

Fixes: rdar://151357567
2025-05-19 13:24:23 -07:00
Charles Zablit
d575a854b3 drop wheels in favor of pip install with hashes 2025-05-19 19:53:30 +02:00
Charles Zablit
5425fd347c sync package name 2025-05-19 19:53:30 +02:00
Charles Zablit
051e9e0710 fixup! [windows] add backup pip install when no wheels are available 2025-05-19 19:53:30 +02:00
Charles Zablit
ffd801b8de [windows] add backup pip install when no wheels are available 2025-05-19 19:53:29 +02:00
Charles Zablit
f59f602ddc Revert "[windows] fix psutil installation on arm64"
This reverts commit 345452c8dbaa61a864e0dc483ad94d1aef89147b.
2025-05-19 19:53:29 +02:00
Charles Zablit
211eaa94f5 Revert "[windows] replace wheels with automatic pip install"
This reverts commit 1a309e5a06d6e29ef6fa806703b404bdbdf4e38b.
2025-05-19 19:53:29 +02:00
Charles Zablit
50dc6b8aa3 [windows] replace wheels with automatic pip install 2025-05-19 19:53:29 +02:00
Charles Zablit
6ff163bc52 [windows] fix psutil installation on arm64 2025-05-19 19:53:27 +02:00
Finagolfin
17543c7bc8 [android][test] Enable tests that are now passing on the Android CI run on Windows 2025-05-19 15:17:49 +05:30
Karoy Lorentey
d98002318d [stdlib][runtime] Establish Swift Stdlib/runtime version 6.3 2025-05-16 19:01:32 -07:00
Anthony Latsis
0777dbd4d8 Merge pull request #81284 from AnthonyLatsis/no-warnings-asserts
[presets] Escalate C++ "unused" warnings in macOS smoke test
2025-05-14 23:24:37 +01:00
Eric Miotto
a5261ae492 Merge pull request #81386 from edymtt/edymtt/do-not-crosscompile-llvm-under-linux
Reenable build of compiler-rt with LLVM_ENABLE_RUNTIMES in Linux bots...
2025-05-14 06:47:30 -07:00
Bassam (Sam) Khouri
1a6962f535 Merge pull request #81401 from bkhouri/t/main/update_presets
preset: treat swift testing the same as xctest
2025-05-13 19:42:42 -04:00
Eric Miotto
fcc03898c7 Reenable build of compiler-rt with LLVM_ENABLE_RUNTIMES in Linux bots...
...we disabled in #81354

This requires a couple of supporting changes

* under Linux, do not cross compile LLVM when building for the host
 architecture -- that will ensure that the compiler-rt build will use
the just built compiler and not the system one (which may not be
new enough for this purpose);
* provide sanitizer flags depending on the linker the just built compiler
 will use -- this detection is brittle, so print a message advising the
user how to override this.

Addresses rdar://150849329
2025-05-13 08:34:11 -07:00
Anthony Latsis
e7237fddc7 [presets] Escalate C++ "unused" warnings in 'smoketest=macosx' 2025-05-13 16:14:40 +01:00
Saleem Abdulrasool
0dc9711292 Merge pull request #81435 from kkebo/fix-memmove
[embedded] Fix `memmove` for testing
2025-05-12 11:04:54 -07:00
Saleem Abdulrasool
cda596486c Merge pull request #81437 from compnerd/old
utils: indicate that the old driver is in effect
2025-05-12 08:25:31 -07:00
Sam Khouri
2962ea2b31 preset: treat swift testing the same as xctest
Whenever XCtest is build and installed, do the same for swift-testing
and swift-testing macros.
2025-05-12 10:53:17 -04:00
Max Desiatov
eac419b8ca Merge pull request #81178 from swiftlang/maxd/install-wasmkit
This enables `swift run` and `swift test` to use WasmKit when cross-compiling to Wasm with Swift SDKs that have toolsets pointing to WasmKit.

rdar://150382758
2025-05-12 02:27:49 +01:00
Saleem Abdulrasool
4daab4a904 utils: indicate that the old driver is in effect
We currently cannot boostrap the toolchain with an early swift-driver.
Mark that we are using the old driver. Once the new experimental SDK is
packaged, we should be able to start building the early swift-driver
with static linking to use the bootstrapped driver.
2025-05-11 17:04:17 -07:00
Kenta Kubo
a4bdd08e0e [embedded] Fix memmove for testing 2025-05-12 02:25:01 +09:00
Max Desiatov
06bee27b9e Set rpath correctly for installed wasmkit binary 2025-05-11 17:36:28 +01:00
Eric Miotto
c018f679e8 Revert "Fallback to legacy way to build compiler-rt in some Linux bots"
This reverts commit 0441a81211.
2025-05-09 09:20:04 -07:00
Evan Wilde
6ad5c40caa Merge pull request #81364 from etcwilde/ewilde/extend-swift-cmake-options
[Build-Script]: Extend Swift cmake options
2025-05-09 09:07:48 -07:00