Browse Source

Resolve right path for circom_runtime in tester

feature/c-tester-linux
Jordi Baylina 4 years ago
parent
commit
da6cff2335
No known key found for this signature in database GPG Key ID: 7480C80C1BE43112
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ports/c/tester.js

+ 1
- 1
ports/c/tester.js

@ -52,7 +52,7 @@ async function c_tester(circomFile, _options) {
); );
} else throw("Unsupported platform"); } 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++" + await exec("g++" +
` ${path.join(cdir, "main.cpp")}` + ` ${path.join(cdir, "main.cpp")}` +

Loading…
Cancel
Save