Skip to content

Commit

Permalink
remove conditional cargo target and let the env set it externally
Browse files Browse the repository at this point in the history
  • Loading branch information
dryajov committed Feb 9, 2024
1 parent 401b684 commit 0a7eaa9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions circomcompat.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a7eaa9

Please sign in to comment.