-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Unset IFS after its use in set_build_options_for_host #28811
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
If IFS remains set, it may cause compilation errors due to unanticipated replacement of characters in some parameters. Addresses rdar://problem/57927748
@swift-ci please test |
@swift-ci please test Windows |
|
||
for target in "${DARWIN_SDK_DEPLOYMENT_TARGETS[@]}"; do | ||
local IFS="-"; triple=($target) | ||
local IFS="-"; triple=($target); unset IFS |
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.
Can you add a comment explaining why this is important?
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.
Rationale explanation added as part of c1bdb4f
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 wonder if we can get away with some regular expressions instead of using ifs and trying to parse out the triple. We really want to discourage people doing much in this script. But, if thats not easy, this is okay to merge. It is correcting a defect, which existed previously.
@swift-ci please test |
@swift-ci please test Windows |
Build failed |
Build failed |
@swift-ci please test Windows |
@swift-ci please clean test Windows |
@swift-ci please test OS X |
If IFS remains set, it may cause compilation errors due to unanticipated
replacement of characters in some parameters.
Addresses rdar://problem/57927748