mirror of
https://github.com/arnaucube/circom.git
synced 2026-02-07 03:06:42 +01:00
write code in stream mode
This commit is contained in:
@@ -83,7 +83,8 @@ async function compile(srcFile, options) {
|
||||
|
||||
if (options.cSourceWriteStream) {
|
||||
const cSrc = buildC(ctx);
|
||||
options.cSourceWriteStream.write(cSrc);
|
||||
cSrc.pipe(options.cSourceWriteStream);
|
||||
await new Promise(fulfill => options.cSourceWriteStream.on("finish", fulfill));
|
||||
}
|
||||
|
||||
// const mainCode = gen(ctx,ast);
|
||||
|
||||
Reference in New Issue
Block a user