-
Notifications
You must be signed in to change notification settings - Fork 205
Disable output file map diagnostic for non-incremental mode #707
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
Disable output file map diagnostic for non-incremental mode #707
Conversation
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 for doing this. It looks good, but before merging I'd like to see an XCTest added to check this. It might be easiest to add a test in IncrementalCompilationTests.swift
, in which the test runs the driver both with- and without the -incremental
flag and checks to see whether the diagnostic is emitted when appropriate.
Would you like to add such a test?
FYI, this is still an issue in Xcode 13.0 beta 4. |
This re-implements this logic https://github.com/apple/swift/blob/3116eed2e465a2688f070b3b87adc106cbbaf09f/lib/Driver/Driver.cpp#L414-L417 to not warn when output file maps don't have a main entry when using WMO
60e3275
to
a75096b
Compare
Updated with tests! |
@swift-ci please test |
@davidungar could you please take another look? It looks good to go to me. |
@davidungar mind taking another look here? |
1 similar comment
@davidungar mind taking another look here? |
@artemcm @davidungar Could we please have another look at this? Thanks! |
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.
Sorry this PR slipped under my radar. Thanks to @CodaFi for pinging me. In future, please feel free to ping me directly.
It would be great if you could add a comment somewhere (if it's not already there) explaining why one would want to exclude the main entry, or under what circumstances. Otherwise, LGTM and thank you for your patience!
f163de5
to
19a09a7
Compare
Done, thanks for following up. To be clear where do you mean when you say "ping you directly"? |
@swift-ci please test |
@artemcm Is this able to get CP'ed into 5.5? |
Yeah, I think this change is pretty safe. |
Thanks! Submitted #828 for the CP |
This re-implements this logic https://github.com/apple/swift/blob/3116eed2e465a2688f070b3b87adc106cbbaf09f/lib/Driver/Driver.cpp#L414-L417 to not warn when output file maps don't have a main entry when using WMO