mirror of
https://github.com/arnaucube/circom_tester.git
synced 2026-02-06 19:06:42 +01:00
Add optimization options
This commit is contained in:
@@ -46,7 +46,9 @@ async function compile (baseName, fileName, options) {
|
||||
if (options.r1cs) flags += "--r1cs ";
|
||||
if (options.json) flags += "--json ";
|
||||
if (options.output) flags += "--output " + options.output + " ";
|
||||
|
||||
if (options.O === 0) flags += "--O0 "
|
||||
if (options.O === 1) flags += "--O1 "
|
||||
|
||||
b = await exec("circom " + flags + fileName);
|
||||
assert(b.stderr == "",
|
||||
"circom compiler error \n" + b.stderr);
|
||||
|
||||
@@ -51,7 +51,9 @@ async function compile (fileName, options) {
|
||||
if (options.r1cs) flags += "--r1cs ";
|
||||
if (options.json) flags += "--json ";
|
||||
if (options.output) flags += "--output " + options.output + " ";
|
||||
|
||||
if (options.O === 0) flags += "--O0 "
|
||||
if (options.O === 1) flags += "--O1 "
|
||||
|
||||
b = await exec("circom " + flags + fileName);
|
||||
assert(b.stderr == "",
|
||||
"circom compiler error \n" + b.stderr);
|
||||
|
||||
Reference in New Issue
Block a user