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

onig_sys: Add cargo:rerun-if-env-changed flags #167

Merged
merged 2 commits into from
Feb 7, 2022

Conversation

Techcable
Copy link
Contributor

This properly reruns the build if the value of $RUSTONIG_DYNAMIC_LIBONING
changes (and all the similar values)

See the cargo reference on build scripts "change detection" for more details.

I have conirmed this works both on the latest stable and the MSRV (Rust 1.50)

This properly reruns the build if the value of $RUSTONIG_DYNAMIC_LIBONING
changes (and all the similar values)

See the cargo reference on build scripts "change detection" for more
details:
https://doc.rust-lang.org/cargo/reference/build-scripts.html#change-detection

I have conirmed this works both on the latest stable and the MSRV (Rust 1.50)
onig_sys/build.rs Outdated Show resolved Hide resolved
Its only our responsibility to filter out if the name starts with 'RUSTONIG'
Copy link
Collaborator

@iwillspeak iwillspeak left a comment

Choose a reason for hiding this comment

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

🎉

@iwillspeak iwillspeak merged commit 835851a into rust-onig:main Feb 7, 2022
@Techcable Techcable deleted the fix/build-env-change-detection branch February 7, 2022 18:01
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.

None yet

2 participants