Skip to content

Commit

Permalink
Merge pull request #1070 from privacy-scaling-explorations/fix/build
Browse files Browse the repository at this point in the history
fix(build): fix bug that prevented c witness from being compiled
  • Loading branch information
ctrlc03 authored Jan 21, 2024
2 parents 9a30f4f + d22caad commit 98f66ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions circuits/ts/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ export const compileCircuits = async (cWitness?: boolean, outputPath?: string):
if (cWitness) {
try {
// build
execFileSync("cd", [`${outPath}/${circuit.name}_cpp`]);
execFileSync("make");
execFileSync("bash", ["-c", `cd ${outPath}/${circuit.name}_cpp && make`]);
} catch (error) {
throw new Error(`Failed to compile the c witness for ${circuit.name}`);
}
Expand Down

0 comments on commit 98f66ce

Please sign in to comment.