mirror of
https://github.com/logos-storage/nim-groth16.git
synced 2026-01-29 10:53:13 +00:00
fix example compilation
This commit is contained in:
parent
b220ffdd0f
commit
d75d5030b7
@ -23,5 +23,4 @@ else:
|
||||
|
||||
# {.compile: "../build/product_cpp/product.cpp".}
|
||||
# {.compile: "../build/product_cpp/main.cpp".}
|
||||
{.compile: "product.cpp".}
|
||||
{.compile: "main.cpp".}
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
ORIG=`pwd`
|
||||
NAME="product"
|
||||
@ -46,7 +47,7 @@ echo '{ "inp": [7,11,13] , "plus": 1022 }' >build/${NAME}_input.json
|
||||
# cd $ORIG/build
|
||||
cp -v $ORIG/circom_build/* $ORIG/build/${NAME}_cpp/
|
||||
cd $ORIG/build/${NAME}_cpp
|
||||
echo "{.compile: \"${NAME}\"}" > ${NAME}.nim
|
||||
echo "{.compile: \"${NAME}.cpp\"}" > ${NAME}.nim
|
||||
nim cpp ${NAME}.nim
|
||||
./${NAME} ../${NAME}_input.json ../${NAME}.wtns
|
||||
cd $ORIG/build
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user