Update to ONDK r29.4

This commit is contained in:
topjohnwu
2025-12-11 22:44:06 -08:00
committed by John Wu
parent da9e72b2a2
commit 8734423cb0
3 changed files with 14 additions and 5 deletions

View File

@@ -80,7 +80,7 @@ support_targets = {"magisk", "magiskinit", "magiskboot", "magiskpolicy", "resetp
default_targets = support_targets - {"resetprop"}
rust_targets = default_targets.copy()
clean_targets = {"native", "cpp", "rust", "app"}
ondk_version = "r29.3"
ondk_version = "r29.4"
# Global vars
config = {}

View File

@@ -3,12 +3,19 @@
# 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"]
rustflags = [
"-Z",
"dwarf-version=4",
"-C",
"linker-plugin-lto",
"-C",
"force-unwind-tables=no",
]
target-dir = "../out/rust"
[unstable]
build-std = ["std", "panic_abort"]
build-std-features = ["panic_immediate_abort", "optimize_for_size"]
build-std-features = ["optimize_for_size"]
profile-rustflags = true
[profile.release]

View File

@@ -1,3 +1,5 @@
cargo-features = ["panic-immediate-abort"]
[workspace]
exclude = ["external"]
members = ["base", "base/derive", "boot", "core", "init", "sepolicy"]
@@ -59,12 +61,12 @@ unwrap_used = "deny"
[profile.dev]
opt-level = "z"
lto = "thin"
panic = "abort"
panic = "immediate-abort"
debug = "none"
[profile.release]
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "abort"
panic = "immediate-abort"
strip = true