arnaucube
arnaucube/circomPublic Self-hosted repository
Resolve right path for circom_runtime in tester
Jordi Baylina jordi@baylina.cat
Thu, 26 Mar 2020 19:05:23 +0100
commit

da6cff23355c1c58f1cc6c49fc0ba0c48eaf5b23

parent

38b4a7a8b3c0f3bb87778252cdd07f5417747382

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M ports/c/tester.js → ports/c/tester.js

@@ -52,7 +52,7 @@ ` ${path.join(dir.path, "fr.asm")}`

); } else throw("Unsupported platform"); - const cdir = path.join(__dirname, "..", "..", "node_modules", "circom_runtime", "c"); + const cdir = path.join(path.dirname(require.resolve("circom_runtime")), "c"); await exec("g++" + ` ${path.join(cdir, "main.cpp")}` +