Commit Graph

9347 Commits

Author SHA1 Message Date
Mishal Shah
6f32ad0dae Revert "Revert "Revert "build: setup a CMake based build for DocC""" 2025-12-11 16:25:44 -08:00
Saleem Abdulrasool
9918933045 Merge pull request #85896 from Steelskin/fabrice/update-bootstrap-arm64-toolchain
utils: Update the bootstrap Windows toolchain
2025-12-11 16:02:30 -08:00
Karoy Lorentey
a233485029 Merge pull request #82055 from vanvoorden/string-identical
[SE-0494][StdLib] Add `isTriviallyIdentical(to:)` Methods to String and Substring
2025-12-11 15:55:11 -08:00
Steven Wu
da8b721654 Merge pull request #85926 from cachemeifyoucan/eng/PR-ebm-scirpt
[TEST-ONLY] Add utility to perform explicit module build
2025-12-10 10:52:03 -08:00
Charles Zablit
f7c4dd81b7 Merge pull request #85702 from charles-zablit/charles-zablit/update-checkout/add-status-command 2025-12-10 17:40:55 +00:00
Ben Barham
8e06293dca Merge pull request #85875 from bnbarham/fix-up-userdocs
Fix up the userdocs index
2025-12-10 08:28:11 +10:00
Steven Wu
756e53967e [TEST-ONLY] Add utility to perform explicit module build
Add a script to build all dependencies for explicit module build in one
step. This reduces the boiling plate code needed to write a test for
explicit module build and allows the test to be more cross platform and
resilient to module dependencies changes.
2025-12-09 12:16:18 -08:00
Karoy Lorentey
794bbb99b4 [stdlib] Define availability for the 6.4 stdlib and runtime 2025-12-08 17:32:19 -08:00
Fabroce de Gans
29eecbe5d5 utils: Update the bootstrap Windows toolchain
The current Windows arm64 bootstrap toolchain is not functional.
2025-12-08 15:34:17 +01:00
Charles Zablit
2ce62d0ffe [update-checkout] add the 'status' subcommand 2025-12-08 11:45:36 +00:00
Ben Barham
b29a0a9b3d Fix up the userdocs index
A few docs weren't added to the index, re-run the generation and fix the
test to actually run in order to catch future issues.
2025-12-06 10:18:19 +10:00
Charles Zablit
13a32fbe80 [update-checkout] fix persistent --clone warning 2025-12-05 12:15:20 +00:00
Ryan Mansfield
95cc52d363 Merge pull request #74431 from rjmansfield/build-toolchain-sccache
Mention --sccache in built-toolchain usage message.
2025-12-04 16:25:19 -05:00
3405691582
4f3541958b Merge pull request #85714 from 3405691582/tar
OpenBSD needs this tar invocation as well.
2025-12-04 15:22:28 -05:00
Saleem Abdulrasool
290bcb5423 Merge pull request #85629 from compnerd/python
utils: adjust the python path
2025-12-04 12:49:45 -06:00
Evan Wilde
4ad6bea8c2 Merge pull request #85825 from etcwilde/ewilde/concurrency-tracing
Concurrency Runtime: Enable tracing with `SWIFT_STDLIB_TRACING`
2025-12-04 08:17:22 -08:00
Ryan Mansfield
56a90bf23f Mention --sccache in build-toolchain usage message. 2025-12-04 11:06:23 -05:00
Doug Gregor
dcebf64e32 Merge pull request #85808 from DougGregor/unicode-data-without-shims
Move Unicode Data declarations from SwiftShims to `@_extern(c)`
2025-12-04 01:50:41 -08:00
Evan Wilde
1c3541e926 Build: Remove concurrency tracing option
Stripping out the logic behind enabling concurrency tracing
independently of the rest of the standard library tracing. It's not
clear that there is a use-case where we want one without the other.
2025-12-03 14:03:40 -08:00
Charles Zablit
6d4c516a32 Merge pull request #85709 from charles-zablit/charles-zablit/update-checkout/fix-print-repo-hashes
[update-checkout] fix white space padding when printing the repo hashes
2025-12-03 21:52:21 +01:00
Charles Zablit
0dc1ccff62 Merge pull request #85708 from charles-zablit/charles-zablit/update-checkout/remove-legacy-multiprocessing-code
[NFC][update-checkout] remove usage of the multiprocessing module
2025-12-03 21:40:45 +01:00
Doug Gregor
3c933a1f73 Move Unicode Data declarations from SwiftShims to @_extern(c)
This eliminates UnicodeData.h from the public SwiftShims. A small
part of it remains as a private header, but everything else moves
into `@_extern(c)`.
2025-12-02 15:11:53 -08: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
3405691582
9b27f91f41 OpenBSD needs this tar invocation as well. 2025-11-26 17:36:02 -05:00
Charles Zablit
fe09ac0703 [NFC][update-checkout] remove usage of the multiprocessing module 2025-11-26 16:11:52 +00:00
Charles Zablit
76007a0b4b [update-checkout] fix white space padding when printing the repo hashes 2025-11-26 12:26:50 +00: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
8c66755133 utils: adjust the python path
Adjust the python relative path when building LLDB to account for the
restructuring in the packaging.
2025-11-20 12:36:45 -08: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