mirror of
https://github.com/topjohnwu/ondk.git
synced 2024-11-23 03:19:40 +00:00
Setting the C compiler is no longer necessary
This commit is contained in:
parent
c596e549c2
commit
1ff1a3ceca
@ -35,11 +35,6 @@ LLVM_BIN="<ondk>/toolchains/llvm/prebuilt/<os>-x86_64/bin"
|
||||
# You can also set this in config.toml, check the official documentation.
|
||||
export CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER="$LLVM_BIN/aarch64-linux-android21-clang"
|
||||
|
||||
# We also need to specify the NDK C compiler with proper flags.
|
||||
# This is used for feature detection internally in std's build system.
|
||||
export TARGET_CC="$LLVM_BIN/clang"
|
||||
export TARGET_CFLAGS='--target=aarch64-linux-android21'
|
||||
|
||||
# Finally, build our project with -Z build-std
|
||||
cargo <+name> build -Z build-std --target aarch64-linux-android
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user