mirror of
https://github.com/arnaucube/circom.git
synced 2026-02-07 03:06:42 +01:00
Resolve right path for circom_runtime in tester
This commit is contained in:
@@ -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")}` +
|
||||||
|
|||||||
Reference in New Issue
Block a user