Skip to content

[6.2 🍒] Bootstrapping Build-Script Presets #81114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 27, 2025

Conversation

etcwilde
Copy link
Contributor

Cherry-pick of: #80921

  • Explanation:
    Adding additional presets for the stage-1 and stage-2 bootstrap toolchains.
    These are both intermediate toolchains that are working up to a toolchain capable of building the entire toolchain.
    The stage-1 toolchain is built from the stage-0 toolchain, which is missing various optimizations due to the lack of Swift code.
  • Scope: This does not impact any of the existing configurations. It is purely additive.
  • Risk: Low. The bootstrap build configuration is only used for brining up the compiler in new environments.
  • Reviewers: @justice-adams-apple
  • Testing: Local testing -- This will be tested in the Bootstrap 6.2 job once landed.

Fixes: rdar://146335939

Adding a stage-1 buildbot preset and updating the stage 0 preset to
install the stage0 bootstrap somewhere so that it can be used to
bootstrap the stage-1 toolchain.

(cherry picked from commit d168fc9)
Adding a build_subdir preset default for the stage 0 and stage 1 build
configurations.

(cherry picked from commit 838d69f)
@etcwilde etcwilde requested a review from a team as a code owner April 25, 2025 23:58
@etcwilde
Copy link
Contributor Author

@swift-ci please smoke test

@etcwilde etcwilde requested a review from shahmishal April 25, 2025 23:58
@etcwilde
Copy link
Contributor Author

@swift-ci please test

Adding a stage-2 preset. This preset adds SwiftPM and XCTest to the
built products. The stage-1 preset could likely build all of the
product, but because the stage-1 compiler was built without several
optimizations available in the stage-0 compiler, this compiler will not
be as performant as a separate stage-2 compiler.

(cherry picked from commit 4130bca)
@etcwilde etcwilde force-pushed the ewilde/6.2-bootstrap-presets branch from 38ec7d6 to 323b37c Compare April 26, 2025 20:40
@etcwilde
Copy link
Contributor Author

@swift-ci please test

@etcwilde etcwilde merged commit 36ed9e1 into swiftlang:release/6.2 Apr 27, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants