Skip to content

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.

1 participant