Skip to content

Commit

Permalink
holding-cell: Rely less on environment variables
Browse files Browse the repository at this point in the history
We can use cc::Build::new() to get the compiler and clang-binutils to
find objcopy.

Signed-off-by: Elliot Berman <[email protected]>
  • Loading branch information
eberman-quic committed Dec 18, 2024
1 parent e712bae commit 793476d
Show file tree
Hide file tree
Showing 6 changed files with 325 additions and 19 deletions.
5 changes: 2 additions & 3 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ linker = "android-ndk/arm64/bin/aarch64-linux-android-clang"
runner = "runners/adb_runner.sh"

[env]
CC_aarch64-linux-android = { value = "android-ndk/arm64/bin/aarch64-linux-android-clang", relative = true }
OBJCOPY = { value = "android-ndk/arm64/bin/llvm-objcopy", relative = true }
AR_aarch64-linux-android = { value = "android-ndk/arm64/bin/llvm-ar", relative = true }
CC_aarch64_linux_android = { value = "android-ndk/arm64/bin/aarch64-linux-android-clang", relative = true }
AR_aarch64_linux_android = { value = "android-ndk/arm64/bin/llvm-ar", relative = true }
RUST_TEST_THREADS = "1"
Loading

0 comments on commit 793476d

Please sign in to comment.