-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Output cargo:rerun-if-changed #41
Comments
Well, getting the dependencies is impossible, but cargo rebuilds if I change the |
"Hmm" indeed. Perhaps it implicitly adds a dependency from some other emitted property. |
If a build script doesn't not output ANY Importantly, emitting no I worked around this by manually emitting our own println!("cargo:rerun-if-changed=build/windows/manifest.rc");
println!("cargo:rerun-if-changed=build/windows/cyrtanthus.manifest");
embed_resource::compile("build/windows/manifest.rc"); |
That explains it, but unfortunately there's still the issue that the default behaviour is better in the general case than speccing just the |
Yeah, sounds like the best bet. Having the user write things out isn't too bad and documenting this is a good idea. |
Erratum added for |
In order for cargo to correctly rebuild when the manifest or resources change, you need to output cargo:rerun-if-changed. This needs to be output for both the resource script and the resources it embeds. Getting the list of resources might be a bit more tricky as it requires cooperation from the resource compiler similar to how you can request Makefile dependencies from gcc or parse cl output for includes.
The text was updated successfully, but these errors were encountered: