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,6 +46,8 @@ 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 == "",
|
||||
|
||||
@@ -51,6 +51,8 @@ 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 == "",
|
||||
|
||||
Reference in New Issue
Block a user