Skip to content

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

Merged
iwillspeak merged 2 commits intorust-onig:mainfrom
Techcable:fix/build-env-change-detection
Feb 7, 2022
Merged

onig_sys: Add cargo:rerun-if-env-changed flags#167
iwillspeak merged 2 commits intorust-onig:mainfrom
Techcable:fix/build-env-change-detection

Conversation

@Techcable
Copy link
Copy Markdown
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)
Its only our responsibility to filter out if the name starts with 'RUSTONIG'
Copy link
Copy Markdown
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.

2 participants