Repository navigation
swift: 6.2.4 -> 6.3.3 - #565702
swift: 6.2.4 -> 6.3.3#565702
Conversation
402557b to
1ce2219
Compare
1ce2219 to
ec9e098
Compare
|
I fixed the formatting, adding the missing redirect, and updated the release notes. |
ec9e098 to
c6a5289
Compare
There was a problem hiding this comment.
Thanks for contributing to the documentation
Make sure you follow the documentation style guide, most notably:
- Show, don't tell: lead with a minimal working example; explanation follows the code.
- No meta-commentary: don't write "This section explains how to…", just do it.
- Imperative mood and active voice: "Run the command", not "The user should run the following command".
- Present tense: "This creates a folder", not "This will create a folder".
- Be confident: no hedging with "should", "might", "typically", "usually".
- Cut filler words: "simply", "just", "easily", "basically"; "to", not "in order to".
For larger changes, like adding or removing whole sections, ask the NixOS documentation team for a review.
|
Pinging @booxter, @Samasaur1, and @NixOS/documentation-team (since I added a new section to the Swift documentation, and the CI bot said to do that) for reviews. |
|
I’m setting this to draft until Swift makes it through the current staging-next cycle. The Glibc and GCC updates broke a few things, which will create conflicts with this PR once the fixes are merged back into staging. |
|
Thank you @reckenrode for this amazing work! Any chance for 6.4.0 with android/musl/wasm sdk's? |
I have 6.4.0 almost done. I did them separately. The 6.3.3 update will be the one to add bootstrapping and the update script while 6.4.0 will be the mundane update that just bumps versions and updates patches (as a test/demo that Swift updates are easier now). I expect the next staging cycle to have 6.4.0 not 6.3.3. I would like SDKs to take advantage of the Android, Musl, and WASI infrastructure in Nixpkgs. Those will come with cross-compilation (after 6.4.0 lands but hopefully for 26.11). |
|
Also, I was mostly done with 6.3.3 when 6.4.0 was tagged. I didn’t want to stop and restart. |
c6a5289 to
0211c1e
Compare
0211c1e to
005765c
Compare
In preparation for bootstrapping Swift 6.3 with Swift 6.2, we need to handle multiple different versions of Swift’s LLVM fork.
The LLVM package set uses `buildLlvmPackages.tblgen`, which will be whatever the latest version is due `generateSplicesForMkScope`. To ensure that the bootstrap build of the Swift LLVM fork uses its own `llvm-tblgen`, manually define the spliced package sets. This breaks cross-compilation of the bootstrap package set, but Swift cross-compilation is expected to use the host toolchain to build the target platform’s Swift and LLVM directly without using a bootstrap toolchain (Swift 6.2.4 and its LLVM 17.0.0).
Darwin overlays LLVM in the last stage of its stdenv bootstrap. It tries to do this in a way that works with overrides, but it’s not perfect. To make sure it uses the correct version of compiler-rt and libclang with the Clang wrapper in the Swift bootstrap, replace the old versions from the stdenv with those from the Swift LLVM fork’s package set. This is ugly, but we can’t use `wrapCCWith` because it would require duplicating a bunch of the logic of the LLVM derivation. This seems like a less bad solution to doing that.
- Add tests to confirm expected behavior based Apple’s utilities; - Fix broken behavior in `copypng` and `tiffutil`.
Splitting the compilation this way works better with newer versions of the Swift LLVM fork (i.e., `llc` crashes while this approach doesn’t).
Newer versions of Swift Syntax have additional modules. We would hardcode them, but we need Swift Syntax in the bootstrap toolchain.
This will be needed to build the Swift 6.3 stage 1 compiler with the Swift 6.2.4 stage 2 bootstrap compiler.
https://www.swift.org/blog/swift-6.3-released/ This is, unfortunately, a large update because most packages in the Swift toolchain expect to be versioned together.
LLDB is not needed to bootstrap Swift. Building and saving the static libs from the bootstrap compiler to build LLDB is a waste of time and storage. These libs should only built for the final Swift compiler.
e9ae441 to
b0db189
Compare
booxter
left a comment
There was a problem hiding this comment.
I reviewed every patch myself. I built Linux and Darwin and confirmed no tool is broken. I haven't spotted any remaining issues myself; my clanker did spot a few minor issues, which I leave for your consideration.
|
|
||
| pts_x=$((dim_x * 7200 / dpi_x)) | ||
| pts_y=$((dim_y * 7200 / dpi_y)) | ||
| if [[ "${pts_x: -2}" = "00" && "${pts_x: -2}" = "00" ]]; then |
| } | ||
|
|
||
| atf_test_case cat_with_multiple_files_does_not_issue_warning_if_point_sizes_are_the_same | ||
| cat_with_multiple_files_issues_warning_if_all_not_same_dimensions_body() { |
There was a problem hiding this comment.
duplicate name (see line 71)
| get_dimensions() { | ||
| local src=$1 | ||
| local out=$(@tiffinfo@ "$src") | ||
| @tiffinfo@ "$src" | @sed@ -nE -e 's/^ *Image Width: ([0-9]+) Image Length: ([0-9]+)$/\1x\2/p' |
There was a problem hiding this comment.
My clanker complains that TIFF dimensions can be rational, in which case tiffinfo prints the result like 72.5. Then get_dimensions returns empty strings, which fails below in $(( ... / ... )) Even if we were to pass fractional there, bash / doesn't know how to deal with it.
> echo $((1000/75.5))
bash: 1000/75.5: arithmetic syntax error: invalid arithmetic operator (error token is ".5")
| sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= | ||
| ``` | ||
|
|
||
| Note: `prefetch-swiftpm-deps` takes an optional third argument for where to save the dependencies. |
|
I’m going to address the graphics_cmds and documentation issues in a follow-up PR. The next staging cycle is starting soon, and I don’t want to risk this slipping to the next one. |
- Fix duplicate test body; - Handle rational X and Y resolutions; - Support files with different X and Y resolutions; and - Match Apple’s tiffutil behavior in the above case (swapping them).
- Fix duplicate test body; - Handle rational X and Y resolutions; - Support files with different X and Y resolutions; and - Match Apple’s tiffutil behavior in the above case (swapping them).
- Fix duplicate test body; - Handle rational X and Y resolutions; - Support files with different X and Y resolutions; and - Match Apple’s tiffutil behavior in the above case (swapping them).
- Fix duplicate test body; - Handle rational X and Y resolutions; - Support files with different X and Y resolutions; and - Match Apple’s tiffutil behavior in the above case (swapping them).
https://www.swift.org/blog/swift-6.3-released/
I confirmed that everything in the Swift package set built on aarch64-darwin and x86_64-linux. I also checked eval using
jj runlike I did in #557896.Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.