Skip to content

Conversation

@WireWhiz
Copy link

One line change that makes the build.rs work when cross-compiling to other architectures where the header files might be different. I needed this change so I could build to aarch64 with cargo ndk without setting up an aarch64 virtual machine.

@WireWhiz
Copy link
Author

Needed a little more work, now any general or target-specific extra clang args passed to bindgen are also passed to libclang calls, ensuring that the correct h files are found when using a custom --sysroot for cross compilation.

@WireWhiz
Copy link
Author

Tested working:
Windows x86_64 host compiling to aarch64-linux-android
Linux x86_64 host compiling to aarch64-linux-android

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