From 0a7eaa9b319d485b313774966a7228b67d990055 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Fri, 9 Feb 2024 12:33:37 -0600 Subject: [PATCH] remove conditional cargo target and let the env set it externally --- circomcompat.nim | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/circomcompat.nim b/circomcompat.nim index 5c740a9..97926a7 100644 --- a/circomcompat.nim +++ b/circomcompat.nim @@ -10,17 +10,9 @@ const libPath* = libDir/"libcircom_compat_ffi.a" static: - var + let cmd = "cargo build --release --manifest-path=vendor/circom-compat-ffi/Cargo.toml" - cmd = when defined(windows): - # select the gnu abi, otherwise the default is msvc - when defined(i386): - cmd & " --target=i686-pc-windows-gnu" - else: - cmd & " --target=x86_64-pc-windows-gnu" - else: cmd - warning "\nBuilding circom compat ffi: " warning cmd let (output, exitCode) = gorgeEx cmd