From a641d9cafcebc09f34f09382d22e08d20e822a47 Mon Sep 17 00:00:00 2001 From: kevaundray Date: Wed, 22 Nov 2023 11:19:41 +0000 Subject: [PATCH 1/2] change panic to a warning and return early --- tooling/bb_abstraction_leaks/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tooling/bb_abstraction_leaks/build.rs b/tooling/bb_abstraction_leaks/build.rs index fe6861a80b8..fee3f72e1dc 100644 --- a/tooling/bb_abstraction_leaks/build.rs +++ b/tooling/bb_abstraction_leaks/build.rs @@ -30,8 +30,10 @@ fn main() -> Result<(), String> { }; // Arm builds of linux are not supported + // We do not panic because we allow users to run nargo without a backend. if let (Os::Linux, Arch::AARCH64) = (&os, &arch) { - panic!("ARM64 builds of linux are not supported") + println!("cargo:warning=ARM64 builds of linux are not supported for the barretenberg binary"); + return Ok(()); }; println!("cargo:rustc-env=BB_BINARY_URL={}", get_bb_download_url(arch, os)); From bdb787e980a239078d9f88d70c03dd0c988e25df Mon Sep 17 00:00:00 2001 From: kevaundray Date: Wed, 22 Nov 2023 11:26:29 +0000 Subject: [PATCH 2/2] cargo fmt --- tooling/bb_abstraction_leaks/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tooling/bb_abstraction_leaks/build.rs b/tooling/bb_abstraction_leaks/build.rs index fee3f72e1dc..3b8973f90a6 100644 --- a/tooling/bb_abstraction_leaks/build.rs +++ b/tooling/bb_abstraction_leaks/build.rs @@ -32,7 +32,9 @@ fn main() -> Result<(), String> { // Arm builds of linux are not supported // We do not panic because we allow users to run nargo without a backend. if let (Os::Linux, Arch::AARCH64) = (&os, &arch) { - println!("cargo:warning=ARM64 builds of linux are not supported for the barretenberg binary"); + println!( + "cargo:warning=ARM64 builds of linux are not supported for the barretenberg binary" + ); return Ok(()); };