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