From ad356c99acfc3cea3c7c014c3114c8cf6d0d2f11 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Mon, 30 Oct 2023 17:42:08 -0700 Subject: [PATCH] Limit libc dependency to ARM and AArch64 targets. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 3378dc84bc..0297fb68a7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -177,7 +177,7 @@ untrusted = { version = "0.9" } [target.'cfg(any(target_arch = "x86",target_arch = "x86_64", all(any(target_arch = "aarch64", target_arch = "arm"), any(target_os = "android", target_os = "fuchsia", target_os = "linux", target_os = "windows"))))'.dependencies] spin = { version = "0.9.8", default-features = false, features = ["once"] } -[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies] +[target.'cfg(all(any(target_os = "android", target_os = "linux"), any(target_arch = "aarch64", target_arch = "arm")))'.dependencies] libc = { version = "0.2.148", default-features = false } [target.'cfg(all(target_arch = "aarch64", target_os = "windows"))'.dependencies]