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

Enable cross-compilation of rust libraries. #106

Merged

Conversation

mutexlox-signal
Copy link
Contributor

cubeb's CMakeLists.txt just does cargo build, which lets callers cross-compile if they desire, by setting CARGO_BUILD_TARGET. However, that will place the output in a different directory. So, if the relevant build flag is specified, look in a different location

@mutexlox-signal mutexlox-signal force-pushed the mutexlox/cross-compile-rust branch from f6591a8 to a3f441e Compare November 1, 2024 20:01
cubeb's CMakeLists.txt just does `cargo build`, which lets callers
cross-compile if they desire, by setting CARGO_BUILD_TARGET. However,
that will place the output in a different directory.

So, always specify *a* CARGO_BUILD_TARGET to force cargo to place the
built rust backends in a known location.
@mutexlox-signal mutexlox-signal force-pushed the mutexlox/cross-compile-rust branch from a3f441e to 8a8df27 Compare November 1, 2024 20:02
@mutexlox-signal
Copy link
Contributor Author

cc @padenot @kinetiknz

@kinetiknz kinetiknz merged commit 3e0a3e7 into mozilla:master Nov 4, 2024
7 checks passed
@kinetiknz
Copy link
Contributor

Thanks!

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