From d22caadca15dc6de639720faf1d9a53259714ce8 Mon Sep 17 00:00:00 2001 From: ctrlc03 <93448202+ctrlc03@users.noreply.github.com> Date: Sun, 21 Jan 2024 14:33:11 +0000 Subject: [PATCH] fix(build): fix bug that prevented c witness from being compiled --- circuits/ts/compile.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/circuits/ts/compile.ts b/circuits/ts/compile.ts index 8187c24c66..3ec91c94cc 100644 --- a/circuits/ts/compile.ts +++ b/circuits/ts/compile.ts @@ -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}`); }