You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Explanation**: This updates `release/6.2` branch of the generator used
when building 6.2 Swift 6.2 toolchain with recent changes. Most notably:
* Embedded Swift SDK for WASI within existing Swift SDK for WASI
artifact bundles, thanks to
swiftlang/swift-package-manager#8638
* Bump to Swift 5.9 in `// swift-tools-version`
* Bump to generating with Swift 6.1 release tag by default (as opposed
to 6.0 previously)
* Support for Debian 11 and Debian 12 together with support for
downloading and unpacking Debian packages as dependencies.
* Additional test suite additions that cover these changes.
**Scope**: Isolated to cross-compilation and only impacts existing
Ubuntu toolchain job that generates Swift SDK for WASI.
**Risk**: Low, most of the changes LoC-wise were incubated on the `main`
branch for a month.
**Testing**: Expanded test suite, corresponding toolchain builds are
passing
https://ci.swift.org/job/oss-swift-pr-test-crosscompile-wasm-ubuntu-20_04/
**Issue**: rdar://151475169
**Reviewers**: @kateinoigakukun@euanh
---------
Co-authored-by: Jesse L. Zamora <[email protected]>
Co-authored-by: Euan Harris <[email protected]>
The scripts directory contains a [`soundness.sh` script](https://github.com/apple/swift-sdk-generator/blob/main/Utilities/soundness.sh)
64
-
that enforces additional checks, like license headers and formatting style.
65
-
66
-
Please make sure to run `./Utilities/soundness.sh` before pushing a change upstream, otherwise it is likely the PR validation will fail
67
-
on minor changes such as formatting issues.
68
-
69
-
For frequent contributors, we recommend adding the script as a [git pre-push hook](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks), which you can do via executing the following command in the project root directory:
70
-
71
-
```bash
72
-
cat <<EOF > .git/hooks/pre-push
73
-
74
-
if [[ -f "Utilities/soundness.sh" ]]; then
75
-
Utilities/soundness.sh
76
-
fi
77
-
EOF
78
-
```
79
-
80
-
Which makes the script execute, and only allow the `git push` to complete if the check has passed.
81
-
82
-
In the case of formatting issues, you can then `git add` the formatting changes, and attempt the push again.
83
-
84
61
## How to contribute your work
85
62
86
-
Please open a pull request at https://github.com/apple/swift-sdk-generator. Make sure the CI passes, and then wait for code review.
63
+
Please open a pull request at https://github.com/apple/swift-sdk-generator. Make sure the CI passes, and then wait for code review.
[^1]: Since LLVM project doesn't provide pre-built binaries of `lld` for macOS on x86_64, it will be automatically built
55
55
from sources by the generator, which will increase its run by at least 15 minutes on recent hardware. You will also
56
56
need CMake and Ninja preinstalled (e.g. via `brew install cmake ninja`).
57
-
[^2]: These distributions are only supported by Swift 5.10.1 and later as both host and target platforms.
57
+
[^2]: Swift does not officially support Debian 11 or Debian 12 with Swift versions before 5.10.1. However, the Ubuntu 20.04/22.04 toolchains can be used with Debian 11 and 12 (respectively) since they are binary compatible.
58
58
[^3]: These versions are technically supported but require custom commands and a Docker container to build the Swift SDK, as the generator will not download dependencies for these distributions automatically. See [issue #138](https://github.com/swiftlang/swift-sdk-generator/issues/138).
0 commit comments