Skip to content

Add -no-whole-module-optimization #29362

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

Merged
merged 2 commits into from
Jan 23, 2020

Conversation

keith
Copy link
Member

@keith keith commented Jan 22, 2020

This adds an argument to allow negating -whole-module-optimization.
This is useful for cases where it's easier to add an extra flag to your
swiftc invocation rather than removing the original one.

This adds an argument to allow negating `-whole-module-optimization`.
This is useful for cases where it's easier to add an extra flag to your
swiftc invocation rather than removing the original one.
@varungandhi-apple
Copy link
Contributor

@swift-ci please smoke test

@keith
Copy link
Member Author

keith commented Jan 23, 2020

Thanks for the review, updated accordingly!

@varungandhi-apple
Copy link
Contributor

@swift-ci please smoke test

@varungandhi-apple
Copy link
Contributor

Also, going forward, in case you need someone to review/kick off tests, please feel free to @ me or someone else. Worst case, they ping someone else who might be better suited to do the review. It is not great if people hang around waiting for a reviewer and eventually have the patch fall through the cracks.

@keith
Copy link
Member Author

keith commented Jan 23, 2020

Great thank you!

@varungandhi-apple varungandhi-apple merged commit 8c8c978 into swiftlang:master Jan 23, 2020
@keith keith deleted the ks/negate-wmo branch January 23, 2020 16:06
@keith
Copy link
Member Author

keith commented Jan 24, 2020

Should i submit a similar change to the new driver project as well?

@varungandhi-apple
Copy link
Contributor

Sure, good thing that you suggested that! I totally forgot about it 😅.

@varungandhi-apple
Copy link
Contributor

For that one, you should probably @ CodaFi or brentdax for review since they are more familiar with the code.

@keith
Copy link
Member Author

keith commented Jan 27, 2020

Another thought, should I make -no-wmo too? I assume that would be as easy as adding the flag to Options.td and then it would "just work" (with a test)

@varungandhi-apple
Copy link
Contributor

I don't follow. You already added -no-whole-module-optimization... is the (only) benefit of having -no-wmo is that it is shorter to type? In that case, I don't think you should add that.

@keith
Copy link
Member Author

keith commented Jan 27, 2020

Yea just to have the analogy of having both flags

@keith
Copy link
Member Author

keith commented Jan 27, 2020

(Since -wmo exists)

@keith
Copy link
Member Author

keith commented Jan 27, 2020

Here's what the change would be #29476 no strong preference if you don't feel like it's necessary!

keith added a commit to keith/swift-driver that referenced this pull request Jan 27, 2020
@keith
Copy link
Member Author

keith commented Jan 27, 2020

Here's the swift-driver PR for this change swiftlang/swift-driver#64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants