Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ndk-build: Switch NDK r23 -lgcc workaround to `CARGO_ENCODED_RUSTFLAG…
…S` env var for paths with spaces On Windows, user paths usually include people's full name, with a space. If they check out a git repository under this name `cargo` fails to parse the workaround path: process didn't exit successfully: `rustc - --crate-name ___ --print=file-names -L '"C:\Users\Bla' 'Haj\Desktop\Breda\target\cargo-apk-temp-extra-link-libraries"' ... (exit code: 1) As per the [documentation for `RUSTFLAGS`] it is split by a very simple `.split(" ")` argument without caring for quotation delimiters or escape characters. To retain backwards compatibility this has been implemented in a new environment variable named `CARGO_ENCODED_RUSTFLAGS`, which separates by ASCII Unit Separators (`0x1f`)instead. [documentation for `RUSTFLAGS`]: https://doc.rust-lang.org/cargo/reference/environment-variables.html
- Loading branch information