Skip to content

[SR-2855] Show args mismatch in -driver-show-incremental #5336

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

Conversation

modocache
Copy link
Contributor

SR-2855 suggests -driver-show-incremental not only print information about why certain files are included in incremental compilation, but also print out why incremental compilation may be disabled altogether.

Add a message for one such reason: when the arguments passed to the Swift compiler don't match the ones used previously.

This addresses one part of SR-2855.

@modocache modocache force-pushed the sr-2855-driver-show-incremental-args branch 2 times, most recently from fd56ba8 to a9a2ceb Compare October 18, 2016 03:05
if (ShowIncrementalBuildDecisions) {
llvm::outs() << "Incremental compilation has been disabled, because "
<< "different arguments were passed to the compiler.\n"
<< "\tCompiling with argument hash: " << argsHashStr << "\n"
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure printing the hash is useful. There's not really anything people can do with it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree. I also think printing "because different arguments were used" would be frustrating -- I'd ideally like to know how they differed. Should I try to print out the delta here, or is that too much work?

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we could just store the old argument list verbatim, in addition to the hash? The only time you'll see it is when you change something that does affect the output.

SR-2855 suggests `-driver-show-incremental` not only print information
about why certain files are included in incremental compilation, but
also print out why incremental compilation may be disabled
altogether.

Add a message for one such reason: when the arguments passed to the Swift
compiler don't match the ones used previously.
@modocache modocache force-pushed the sr-2855-driver-show-incremental-args branch from a9a2ceb to 0e760b5 Compare October 20, 2016 01:54
@modocache
Copy link
Contributor Author

@jrose-apple For now, I've removed the argument hashes. I could store the argument lists as part of this commit, or (my preference) as a future improvement.

@modocache
Copy link
Contributor Author

@swift-ci please smoke test

@modocache modocache merged commit 471d146 into swiftlang:master Oct 20, 2016
@modocache modocache deleted the sr-2855-driver-show-incremental-args branch October 20, 2016 02:56
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