-
Notifications
You must be signed in to change notification settings - Fork 304
Update the compiler arguments used for background AST builds #1971
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 |
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!
case .removeOptionAndPreviousArgument: | ||
_ = result.popLast() |
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.
Should we validate that the previous argument is indeed -Xfrontend
? If it is not, should we log a fault and not remove the argument? Probably best to give removeOptionAndPreviousArgument
an associated value with the expected previous argument in that case.
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 skipped the log, seems noisy and if the flag is there then we should remove it regardless (but have skipped removing the previous).
baf8d12
to
29b4e95
Compare
@swift-ci please test |
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.
One more small comment. Otherwise, I think you need to update CMakeLists.txt since you moved files.
29b4e95
to
25548d5
Compare
@swift-ci please test |
@swift-ci please test Windows platform |
This fixes two issues: 1. The SwiftPM build system was setup without passing through whether it should prepare or not. This meant that we lost eg. the argument to allow compiler errors when building the AST (even though it was set when building the modules) 2. The compiler argument adjustment to remove harmful and unnecessary flags only applied to indexing arguments, not those passed to the AST builds Resolves rdar://141508656.
25548d5
to
ab12429
Compare
@swift-ci please test |
@swift-ci please test Windows platform |
This fixes two issues:
Resolves rdar://141508656.