Skip to content

Fixes #309 - #371

Merged
pharring merged 3 commits into
dotnet:masterfrom
pharring:IncrementalBuildFix
Feb 11, 2015
Merged

Fixes #309#371
pharring merged 3 commits into
dotnet:masterfrom
pharring:IncrementalBuildFix

Conversation

@pharring

Copy link
Copy Markdown
Contributor

We have two targets that each modify a compiled binary in-place:
ApplyOptimizations and FakeSign. They each write out their own sentinel
file to help keep incremental build healthy and quick. However, this
causes problems when you need to run both (e.g. on a developer box
compiling Release binaries).
This change moves the sentinel file into a third task that depends on
the other two. I hope it's obvious how to extend this if more "post
compile binary modification" targets are added later.

We have two targets that each modify a compiled binary in-place:
ApplyOptimizations and FakeSign. They each write out their own sentinel
file to help keep incremental build healthy and quick. However, this
causes problems when you need to run both (e.g. on a developer box
compiling Release binaries).
This change moves the sentinel file into a third task that depends on
the other two. I hope it's obvious how to extend this if more "post
compile binary modification" targets are added later.
@pharring

Copy link
Copy Markdown
Contributor Author

@jasonmalinowski Please take a look.

Comment thread build/VSL.Imports.Closed.targets Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The easier option is to put the ...SentinelFile item into the "FileWrites" item group. Those get stored and clean will delete it automatically.

@jasonmalinowski

Copy link
Copy Markdown
Member

👍

@pharring

Copy link
Copy Markdown
Contributor Author

@jasonmalinowski Thanks for the review. I applied both your suggested changes.

@pharring pharring self-assigned this Feb 10, 2015
pharring added a commit that referenced this pull request Feb 11, 2015
@pharring
pharring merged commit 13d27f3 into dotnet:master Feb 11, 2015
@pharring
pharring deleted the IncrementalBuildFix branch February 11, 2015 00:09
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