Browse Source

Syms generarion fixed

feature/witness_bin
Jordi Baylina 5 years ago
parent
commit
305bc7456f
No known key found for this signature in database GPG Key ID: 7480C80C1BE43112
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      cli.js

+ 10
- 1
cli.js

@ -88,6 +88,7 @@ if (argv.sym) {
compiler(fullFileName, options).then( () => {
let r1csDone = false;
let cSourceDone = false;
let symDone = false;
if (options.r1csWriteStream) {
options.r1csWriteStream.end(() => {
r1csDone = true;
@ -104,8 +105,16 @@ compiler(fullFileName, options).then( () => {
} else {
cSourceDone = true;
}
if (options.symWriteStream) {
options.symWriteStream.end(() => {
symDone = true;
finishIfDone();
});
} else {
cSourceDone = true;
}
function finishIfDone() {
if ((r1csDone)&&(cSourceDone)) {
if ((r1csDone)&&(cSourceDone)&&(symDone)) {
process.exit(0);
}
}

Loading…
Cancel
Save