From 6f7b769e15c2f76a5f42d3cc6ec04b8751661786 Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Mon, 20 Nov 2023 21:37:01 -0700 Subject: [PATCH] add products --- example/support/product.nim | 18 ++++++++++++++++++ example/support/product.nims | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 example/support/product.nim create mode 100644 example/support/product.nims diff --git a/example/support/product.nim b/example/support/product.nim new file mode 100644 index 0000000..0ac7ec3 --- /dev/null +++ b/example/support/product.nim @@ -0,0 +1,18 @@ + +{.passc: gorge("pkg-config --cflags gmp nlohmann_json").} +{.passl: gorge("pkg-config --libs gmp nlohmann_json").} + +when defined(arm64): + {.passc: "-D_LONG_LONG_LIMB".} + {.compile("fr_raw_arm64.s", "-O3 -DNDEBUG -arch arm64 -fPIC -D_LONG_LONG_LIMB").} + {.compile: "fr_raw_generic.cpp".} + {.compile: "fr_generic.cpp".} +else: + {.compile: "fr.asm".} + +{.compile: "fr.cpp".} +{.compile: "calcwit.cpp".} +{.compile: "witnesscalc.cpp".} +{.compile: "circuits_incl.cpp".} +# {.compile: "product.cpp".} +{.compile: "main.cpp".} diff --git a/example/support/product.nims b/example/support/product.nims new file mode 100644 index 0000000..e86226e --- /dev/null +++ b/example/support/product.nims @@ -0,0 +1,4 @@ + +--backend:cpp +--noMain:on +--verbosity:2