Skip to content

Fix build script platform behavior#33

Merged
fpagliughi merged 3 commits intofpagliughi:masterfrom
ShaneMurphy2:bug/fix-build-script-platform-behavior
Jun 21, 2025
Merged

Fix build script platform behavior#33
fpagliughi merged 3 commits intofpagliughi:masterfrom
ShaneMurphy2:bug/fix-build-script-platform-behavior

Conversation

@ShaneMurphy2
Copy link
Contributor

@ShaneMurphy2 ShaneMurphy2 commented Jun 18, 2025

The old method used cfg directives based on target architecture. This was not correct, as the build script is always built for the host architecture. Instead, the build script should use the environment variable provided by cargo to detect the architecture for which the associated crate will be built.

The old method used `cfg` directives based on target architecture. This was not
correct, as the build script is always built for the host architecture. Instead,
the build script should use the environment variable provided by cargo to detect the
architecture for which the associated crate will be built.
@fpagliughi
Copy link
Owner

fpagliughi commented Jun 21, 2025

Yeah, that's so confusing. It tripped me up on all my projects a while back, and I still haven't gone through to see which ones still aren't fixed yet.

Thanks!

I'm gonna revert out the version change in the main Cargo.toml. Technically the -sys crate is separate (and published separately), and only that one needs to be updated and published. Though I guess I should make a separate CHANGELOG for the -sys crate.

@fpagliughi fpagliughi merged commit 71f30fc into fpagliughi:master Jun 21, 2025
4 checks passed
fpagliughi added a commit that referenced this pull request Jun 21, 2025
@ShaneMurphy2
Copy link
Contributor Author

Awesome, any idea when you plan to do another release?

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