-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Include Swift Build support in second stage bootstrap builds #8334
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
Include Swift Build support in second stage bootstrap builds #8334
Conversation
@swift-ci test |
@swift-ci test macOS |
@swift-ci test macOS |
@swift-ci test |
@swift-ci test Windows |
@swift-ci test Windows platform |
f5acc1b
to
fbc8b58
Compare
@swift-ci test |
@swift-ci test Windows |
fbc8b58
to
e347c36
Compare
@swift-ci test |
@swift-ci test Windows |
@swift-ci test Linux |
e347c36
to
c1519f2
Compare
@swift-ci test |
@swift-ci test Windows |
help: .init("Specify alternate path to search for SwiftPM resources.", visibility: .hidden), | ||
completion: .directory | ||
) | ||
public var packageManagerResourcesDirectory: AbsolutePath? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: Should this be added to the command-line options in swift-bootstrap/main.swift
too so that we can bootstrap building SwiftPM itself with the swiftbuild system someday?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Swift Build still has a fallback to the resources directory in the build directory, which I think will cover this case
@@ -809,7 +814,6 @@ def get_swiftpm_env_cmd(args): | |||
|
|||
if args.llbuild_link_framework: | |||
env_cmd.append("SWIFTPM_LLBUILD_FWK=1") | |||
env_cmd.append("SWIFTPM_NO_SWBUILD_DEPENDENCY=1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thought: I wonder if the smoke test builds will pass with the dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to get an earlier run passing, the latest test run just has minor tweaks so I think it'll work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. I posted a question and thought.
Stop setting SWIFTPM_NO_SWBUILD_DEPENDENCY in the bootstrap script - we've made changes to Swift Build which should allow it to be bootstrapped in these environments (it's still not part of swift-bootstrap itself though).