-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ndk-build uses `CARGO_ENCODED_RUSTFLAGS` to get around flags/arguments with spaces in `RUSTFLAGS`, with no defined way to escape them. For correctness this implementation reads `CARGO_ENCODED_RUSTFLAGS` instead of blindly overwriting its contents, but as per [`build.rustflags` precedence rules] setting this environment variable would disregard any contents in the more common `RUSTFLAGS` environment variable. To make this more convenient for users, propagate the contents of `RUSTFLAGS` into `CARGO_ENCODED_RUSTFLAGS` to ensure its contents don't get ignored. [`build.rustflags` precedence rules]: https://doc.rust-lang.org/cargo/reference/config.html#buildrustflags
- Loading branch information
1 parent
3f9df7f
commit 21b11fe
Showing
2 changed files
with
39 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters