Commit Graph

9322 Commits

Author SHA1 Message Date
Bassam (Sam) Khouri
6ab6482730 Tests: enable Swift PM tests in Windows toolchain build
Enable the SwiftPM tests in the Windows toolchain build to get extra
confidence the change did not introduce any regression on the Windows
platform.

Execute SwiftPM tesst in parallel

Fixes: swiftlang/swift-package-manager#8895
2025-12-02 13:06:16 -05:00
Si Beaumont
c9b3ded5e3 Enable BPF target in LLVM backend by default (#85630)
Adding the BPF target to the LLVM backend, allows eBPF programs to be
built using the clang that ships with the OSS toolchains.

Should be a low-risk change, which I've tested locally by explicitly
specifying the `--llvm-targets-to-build` flag:

```console
% build/Ninja-ReleaseAssert/llvm-linux-aarch64/bin/clang -print-targets | grep bpf
    bpf        - BPF (host endian)
    bpfeb      - BPF (big endian)
    bpfel      - BPF (little endian)

% touch empty.c

% build/Ninja-ReleaseAssert/llvm-linux-aarch64/bin/clang -target bpf -c empty.c -o empty.o

% file empty.o
empty.o: ELF 64-bit LSB relocatable, eBPF, version 1 (SYSV), not stripped
```



Looks like a negligible increase in build time vs previous PR toolchain
builds:

| Job | Build script analyzer total | LLVM time (sec) |

|----------------------|-----------------------------|-------------------|
| #1584 (this PR)[^0] | 2hr 21m 53s | 1178.85 |
| #1583 (previous)[^1] | 2hr 22m 8s | 1171.51 |
| ...failed runs... | ...failed runs... | ...failed runs... |
| #1578 (previous)[^2] | 2hr 22m 40s | 1171.47 |
| #1577 (previous)[^3] | 2hr 21m 48s | 1168.54 |
| #1576 (previous)[^4] | 2hr 20m 39s | 1174.80 |


And an increased of size comparison of PR toolchain(s) vs last nightly
main, it
looks like it's gone up a bit, but not by this PR:

| PR | `stat -c %s` | Link |

|-------------|--------------|----------------------------------------------------------------|
| — | 1187466342 |
swift-DEVELOPMENT-SNAPSHOT-2025-08-27-a-ubuntu20.04.tar.gz[^5] |
| This PR | 1212116532 |
pull-request/85630/1584/ubuntu2204/PR-ubuntu2204.tar.gz[^6] |
| Previous PR | 1213404191 |
pull-request/85358/1583/ubuntu2204/PR-ubuntu2204.tar.gz[^7] |
| Previous PR | 1213116282 |
pull-request/79684/1578/ubuntu2204/PR-ubuntu2204.tar.gz[^8] |

[^0]: https://ci.swift.org/job/swift-PR-toolchain-Linux/1584/consoleText
[^1]: https://ci.swift.org/job/swift-PR-toolchain-Linux/1583/consoleText
[^2]: https://ci.swift.org/job/swift-PR-toolchain-Linux/1578/consoleText
[^3]: https://ci.swift.org/job/swift-PR-toolchain-Linux/1577/consoleText
[^4]: https://ci.swift.org/job/swift-PR-toolchain-Linux/1576/consoleText

[^5]:
https://download.swift.org/development/ubuntu2004/swift-DEVELOPMENT-SNAPSHOT-2025-08-27-a/swift-DEVELOPMENT-SNAPSHOT-2025-08-27-a-ubuntu20.04.tar.gz
[^6]:
https://download.swift.org/tmp/pull-request/85630/1584/ubuntu2204/PR-ubuntu2204.tar.gz
[^7]:
https://download.swift.org/tmp/pull-request/85358/1583/ubuntu2204/PR-ubuntu2204.tar.gz
[^8]:
https://download.swift.org/tmp/pull-request/79684/1578/ubuntu2204/PR-ubuntu2204.tar.gz
2025-12-02 16:21:52 +00:00
Charles Zablit
ce082bcc83 Merge pull request #85612 from charles-zablit/charles-zablit/windows/fix-arm64-build-python 2025-12-02 12:55:28 +01:00
Charles Zablit
715cba10c8 Merge pull request #85614 from charles-zablit/charles-zablit/windows/fix-batch-script 2025-12-01 12:48:50 +01:00
Charles Zablit
bc59e0d2f7 [windows] fix invalid arm64 pinned toolchain hash 2025-11-21 11:39:06 +01:00
Anthony Latsis
9dc6ff700f Merge pull request #85574 from swiftlang/jepa-main4
[utils] swift-xcodegen: Bump tools & SDK versions + misc improvements
2025-11-20 20:44:42 +00:00
Saleem Abdulrasool
62b7fe594c Merge pull request #85493 from speednoisemovement/normalize_tc_dir
build.ps1: extract normalized toolchain name
2025-11-20 10:30:37 -08:00
Anthony Latsis
38f72fac32 [utils] swift-xcodegen: Make a couple of types noncopyable 2025-11-20 15:37:04 +00:00
Anthony Latsis
87a0f5ec7a [utils] swift-xcodegen: Enable some Swift 7 upcoming features 2025-11-20 15:32:44 +00:00
Anthony Latsis
55de49d10b [utils] swift-xcodegen: Bump deployment target to macOS 15 and use Mutex 2025-11-20 15:02:32 +00:00
Anthony Latsis
8358329bd3 [utils] swift-xcodegen: Update command usage in README 2025-11-20 14:48:34 +00:00
Anthony Latsis
6846aabb03 [utils] swift-xcodegen: Proofread option descriptions 2025-11-20 14:48:31 +00:00
Anthony Latsis
1b2abc4c5b [utils] swift-xcodegen: Proofread README 2025-11-20 14:32:51 +00:00
Anthony Latsis
f45ef5243f [utils] swift-xcodegen: migrate to Swift Testing 2025-11-20 14:32:13 +00:00
Anthony Latsis
c1ca6993cf [utils] swift-xcodegen: Bump tools version to 6.0 2025-11-20 14:22:05 +00:00
Charles Zablit
1c62638e9e [windows] improve SKIP_TESTS substitution 2025-11-20 12:51:18 +01:00
Saleem Abdulrasool
86fb7acc56 Merge pull request #85594 from compnerd/dynamic-only
utils: clean up static library elision
2025-11-19 16:34:26 -08:00
Saleem Abdulrasool
87c858b769 Merge pull request #85583 from compnerd/system-duplication
utils: avoid rebuilding swift-system
2025-11-19 14:36:03 -08:00
Saleem Abdulrasool
a1786258d6 utils: clean up static library elision
When building just the dynamic variants of the SDK, we would fail due to
the subdirectory not existing. This allows us to proceed silently in the
case.
2025-11-19 11:13:27 -08:00
Charles Zablit
f76be65c3c Merge pull request #85429 from charles-zablit/charles-zablit/update-checkout/add-readme
[update-checkout] add a README
2025-11-19 18:58:02 +01:00
Charles Zablit
5bc3abe8b8 Merge pull request #85428 from charles-zablit/charles-zablit/update-checkout/script-cleanup
[update-checkout] remove unused test and finalize `utf-8` encoding refactor
2025-11-19 18:54:28 +01:00
Saleem Abdulrasool
b0bfaa417c utils: avoid rebuilding swift-system
Ensure that we pass along swift-system to swift-subprocess when building
to avoid the re-cloning and re-building of the dependency. This should
reduce any potential bloat and build time costs.
2025-11-18 22:08:28 -08:00
Charles Zablit
77627f37f9 [windows] remove pip installation 2025-11-18 23:47:28 +01:00
Adrian Prantl
5cc8264d8d Merge pull request #80041 from gooichi/swift-project-settings
[swift-project-settings] require flymake-proc
2025-11-18 13:19:40 -08:00
Saleem Abdulrasool
33a65430ce Revert "Revert "build: setup a CMake based build for DocC"" 2025-11-17 09:39:26 -08:00
Yuta Saito
52c746b24e Revert "build: setup a CMake based build for DocC" 2025-11-17 19:36:51 +09:00
Leonard Grey
c975f1bb7d Rename, take -a out of regex 2025-11-14 16:06:40 -05:00
Charles Zablit
6c14618e60 [windows] refactor pip installation's Python invocation in build.ps1 2025-11-14 11:50:30 +01:00
Charles Zablit
4c977c6b81 Merge pull request #85277 from charles-zablit/charles-zablit/update-checkout/add-tests 2025-11-13 23:05:09 +01:00
Leonard Grey
f306f92d65 build.ps1: extract normalized toolchain name 2025-11-13 13:21:47 -05:00
Mishal Shah
0e6c6bcfc1 Merge pull request #85478 from swiftlang/swift-6.3-scheme-on-main
[update-checkout] Add support for the swift 6.3 branches
2025-11-13 08:14:16 -08:00
Charles Zablit
bf26dbfd1c Merge pull request #83488 from charles-zablit/charles-zablit/windows/upgrade-python-to-3.10 2025-11-13 12:38:08 +01:00
Mishal Shah
d30c1c9faf [update-checkout] Add support for the swift 6.3 branches 2025-11-12 22:23:20 -08:00
Leonard Grey
c7d25318c6 build.ps1: fix toolchain name trimming for arm64 2025-11-12 16:27:48 -05:00
Henrik G. Olsson
65d5425955 Merge pull request #85400 from hnrklssn/update-verify-tests-litplugin
[utils] integrate update-verify-tests with lit's --update-tests
2025-11-12 18:03:33 +00:00
Henrik G. Olsson
5db7926e09 [utils] add support for expected-remarks to update-verify-tests.py 2025-11-11 16:35:00 -08:00
Henrik G. Olsson
c246140d7f [utils] remove trailing whitespace after removing diag 2025-11-11 16:34:59 -08:00
Henrik G. Olsson
4d5844b723 [utils] only steal 1 diagnostic
This fixes a bug in the diagnostic stealing logic when multiple
diagnostics target the same line, which would trigger an assert.
2025-11-11 16:34:59 -08:00
Henrik G. Olsson
4af20b25d5 [utils] fix bug in diagnostic stealing logic
When replacing expected diagnostic content, we should consider
expected diagnostics targeting the same target, not targeting the line
the expected diagnostic is on.
2025-11-11 16:34:55 -08:00
Henrik G. Olsson
38620d49b1 [utils] integrate update-verify-tests with lit's --update-tests
This adds a lit plugin wrapping the core of update-verify-tests. When
lit is invoked with --update-tests it will call the plugin, which checks
if the failure is due to a -verify mismatch. If it is, it tries to
repair the test. If the source file was originally created by
split-file, the changes are propagated to the parent file.

No tests are added, because I don't want to run nested llvm-lit tests
in Swift's test suite, but the core functionality is tested through
update-verify-tests.py.
2025-11-11 16:33:43 -08:00
Ben Barham
3eb1beaecf Merge pull request #83993 from bnbarham/switch-foundation-configuration
Switch Windows foundation tests back to debug for PR testing
2025-11-12 10:04:25 +10:00
Henrik G. Olsson
32fd1c0dda Merge pull request #85390 from hnrklssn/update-verify-tests-continuted
[utils] add support for expected-expansion to update-verify-tests
2025-11-11 23:24:55 +00:00
Saleem Abdulrasool
cc8aacaad0 Merge pull request #85435 from swiftlang/charles-zablit/windows/fix-arm64-build
[windows] add SHA256 hash to ARM64 pinned toolchain
2025-11-11 12:49:51 -08:00
Mishal Shah
47a9524910 Add support for Swift 6.2.2 release branch scheme 2025-11-11 08:59:51 -08:00
Charles Zablit
132bff7090 [windows] add SHA256 hash to ARM64 pinned toolchain 2025-11-11 16:28:09 +01:00
Charles Zablit
0103f3738b [update-checkout] add a README 2025-11-11 13:37:05 +01:00
Charles Zablit
e2c6b4a233 [update-checkout] finalize using utf-8 encoding in all subprocess invocations 2025-11-11 13:33:25 +01:00
Charles Zablit
0002aec811 [update-checkout] remove unused test 2025-11-11 13:30:16 +01:00
Adam Ward
2fe87ca041 Bump version of swift-tools-protocols to 0.0.9
Needed downstream for this sourcekit-lsp PR https://github.com/swiftlang/sourcekit-lsp/pull/2340
2025-11-10 15:33:19 -05:00
Saleem Abdulrasool
4214842317 Merge pull request #76574 from compnerd/early-driver-win
utils: enable early swift driver on Windows
2025-11-10 09:56:35 -08:00