Skip to content
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

Dependency gets recompiled every time due to rerun-if-changed with non-existing path #32

Open
jhorstmann opened this issue Sep 7, 2021 · 0 comments

Comments

@jhorstmann
Copy link

The build.rs references a local antlr.jar that usually does not exist when using antlr4rust as a dependency. This seems to trigger a full rebuild every time, according to a cargo issue that is the expected behaviour.

I can imagine two solutions, either check in the antlr.jar so it can be referenced using a local file (but not sure about the license implications), or the build.rs logic could be triggered only when an environment variable is set, since this seems to be needed for tests only. Detecting the test profile from within build.rs does not seem to be possible yet.

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

No branches or pull requests

1 participant