Update to ONDK r27.0

Co-authored-by: LoveSy <shana@zju.edu.cn>
This commit is contained in:
topjohnwu
2024-04-25 23:27:12 -07:00
committed by John Wu
parent 4bac2df4e7
commit b678afa4b6
8 changed files with 8 additions and 24 deletions

View File

@ -257,8 +257,6 @@ def run_cargo(cmds, triple="aarch64-linux-android"):
env["PATH"] = f'{rust_bin}{os.pathsep}{env["PATH"]}'
env["CARGO_BUILD_RUSTC"] = op.join(rust_bin, "rustc" + EXE_EXT)
env["RUSTFLAGS"] = f"-Clinker-plugin-lto -Zthreads={min(8, cpu_count)}"
env["TARGET_CC"] = op.join(llvm_bin, "clang" + EXE_EXT)
env["TARGET_CFLAGS"] = f"--target={triple}23"
return execv([cargo, *cmds], env)