Skip to content

Rerun build.rs only when .git/HEAD or CFG_RELEASE_CHANNEL is changed #2581

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
Apr 5, 2018

Conversation

sinkuu
Copy link
Contributor

@sinkuu sinkuu commented Apr 1, 2018

Cargo rebuilds the project (even if source codes are unchanged) when any file in the project directry is changed and build.rs is run, which takes 5 seconds on my machine. This PR prevents unnecessary runs of it.

@nrc nrc merged commit 4237f40 into rust-lang:master Apr 5, 2018
@nrc
Copy link
Member

nrc commented Apr 5, 2018

Thanks!

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