From 239674c76a17562839b558887dc2dbdf8c4c11b3 Mon Sep 17 00:00:00 2001 From: Enver Balalic Date: Sun, 1 Oct 2023 20:32:14 +0200 Subject: [PATCH] Add -mno-outline-atomics when building C code Fixes building the aarch64 toolchain. Disables emitting `__aarch64_swp4_sync` and similar functions. --- build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/build.rs b/build.rs index dc7f585ce2..ad38659014 100644 --- a/build.rs +++ b/build.rs @@ -59,6 +59,7 @@ fn main() { .flag("-nostdlib") .include(&format!("{}/include", crate_dir)) .include(&format!("{}/target/include", crate_dir)) + .flag("-mno-outline-atomics") .flag("-fno-stack-protector") .flag("-Wno-expansion-to-defined") .files(