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

Fix cross-compilation #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Palladinium
Copy link

@Palladinium Palladinium commented Feb 15, 2020

The current build.rs uses cfg!() statements to check the build platform, which fails when cross-compiling (e.g. by using cross), because in build scripts those checks return information about the host system rather than the target system.

This PR changes the build script to use the environment variables provided by cargo to hopefully fix cross-compilation without affecting native compilation.

I've only been able to test Windows and Linux, as I don't have access to a Mac OS system.

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

1 participant