-
Notifications
You must be signed in to change notification settings - Fork 219
Clean swift_flags array between targets in build-script-helper.py
#1168
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
Conversation
|
@swift-ci please test |
artemcm
left a comment
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.
Thank you!
|
@swift-ci test |
|
@artemcm Thanks for the review, please merge the PR since I don't have write access to the repo. (yet 😂) |
|
@azarovalex , this CI does not run the CMake build at all. Could you please also run a test from the main |
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.
If this helps, I've cross tested this PR in swiftlang/swift#60901 -- all jobs are green and swift-driver/swift-help have all archs as expected.
> lipo -archs Library/Developer/Toolchains/swift-PR-60901-293.xctoolchain/usr/bin/swift-driver
x86_64 arm64
> lipo -archs Library/Developer/Toolchains/swift-PR-60901-293.xctoolchain/usr/bin/swift-help
x86_64 arm64
Leaving to @artemcm to merge in case I've missed something
Script
Utilities/build-script-helper.pydoesn't cleanswift_flagsarray while iterating on different targets, which results in the wrong-targetflag passed on the second iteration.Same with
base_cmake_flagsarray, it should not be shared between different targets.This bug currently blocks swift toolchain cross-compiling on M1 macs.