Skip to content

[Batch mode] Warn the user if -enable-batch-mode gets overridden by -whole-module-optimization or -index-file. #15578

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 1 commit into from
Mar 29, 2018

Conversation

davidungar
Copy link
Contributor

@davidungar davidungar commented Mar 28, 2018

A user could get confused because the compiler won't run in batch mode, even if given the -enable-batch-mode command line option if it is also given either -whole-module-optimization or -index-file.
rdar://problem/38924422

@davidungar davidungar force-pushed the PR-19-warn-WMO-batch branch 4 times, most recently from 8230f4d to 57baf2e Compare March 28, 2018 17:41
@davidungar
Copy link
Contributor Author

@swift-ci please smoke test

@davidungar davidungar requested review from graydon, anemet and jrose-apple and removed request for anemet March 28, 2018 17:42
Copy link
Contributor

@graydon graydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me aside from comment typo.

if (!ArgRequiringWMO)
return OutputInfo::Mode::StandardCompile;

// Test for -explicit-batch-mode, rather than the BatchMode flag that is
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/-explicit-batch-mode/-enable-batch-mode/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks--D'Oh!

@davidungar
Copy link
Contributor Author

@swift-ci please smoke test linux platform

@davidungar davidungar force-pushed the PR-19-warn-WMO-batch branch from 57baf2e to 43b8913 Compare March 29, 2018 00:31
@davidungar
Copy link
Contributor Author

@swift-ci please smoke test

@davidungar davidungar merged commit a055d46 into swiftlang:master Mar 29, 2018
davidungar pushed a commit to davidungar/swift that referenced this pull request Mar 29, 2018
[Batch mode] Warn the user if -enable-batch-mode gets overridden by -whole-module-optimization or -index-file.
davidungar pushed a commit that referenced this pull request Mar 30, 2018
…oring-batch-mode-swift-4.2-branch

[Batch mode] Merge pull request #15578 from davidungar/PR-19-warn-WMO-batch
@davidungar davidungar deleted the PR-19-warn-WMO-batch branch May 16, 2018 16:59
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.

3 participants