Skip to content

Commit

Permalink
fix(build): fix bug that prevented c witness from being compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlc03 committed Jan 21, 2024
1 parent 9a30f4f commit d22caad
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 d22caad

Please sign in to comment.