Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix android build on Fedora 40. (#32532)
* Postfix PATH with android toolchain: We only need to edit path for the linker specified in the `.cargo/config.toml` to be found. Adding the NDK clang to the end of PATH is sufficient for that. Adding the NDK clang to the front can cause problems however, since it causes the NDK `clang` to be preferred over the system clang. This can cause problems on some systems, where compiling e.g. buildscripts for HOST subsequently fails. * Prefix target compiler and compiler flags variables with `TARGET_` so as not to influence compilation for HOST targets. * SET `CLANG_PATH` to avoid [bindgen #2682] [bindgen #2682]: rust-lang/rust-bindgen#2682 Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
- Loading branch information