Properly configure Rust builds

This commit is contained in:
topjohnwu
2024-08-03 01:28:53 -07:00
parent d4a9ef7b7f
commit 4c14ae33f5
3 changed files with 33 additions and 37 deletions

View File

@@ -1,7 +1,10 @@
[build]
# Choose arm64 as the default target to make the IDE happy.
# Set arm64 as the default target
# The actual compilation will have the target overriden by command-line.
target = "aarch64-linux-android"
# Enable cross language LTO, and explicitly set dwarf-version for ThinLTO
rustflags = ["-Z", "dwarf-version=4", "-C", "linker-plugin-lto"]
target-dir = "../out/rust"
[unstable]
build-std = ["std", "panic_abort"]

View File

@@ -1,2 +0,0 @@
test.cpp
target/