Resolve right path for circom_runtime in tester
Jordi Baylina jordi@baylina.cat
Thu, 26 Mar 2020 19:05:23 +0100
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")}` +