From 959c4fa6988129a0101fbc01e39462a04521be41 Mon Sep 17 00:00:00 2001 From: Yingchi Long Date: Tue, 25 Jun 2024 18:47:10 +0800 Subject: [PATCH] toolchain: await compiling global --- src/toolchain/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/toolchain/index.ts b/src/toolchain/index.ts index 9098a0e..5899fb4 100644 --- a/src/toolchain/index.ts +++ b/src/toolchain/index.ts @@ -109,7 +109,7 @@ export function reduceIR(llvmTC: LLVMToolchain, IR: string) { proc.stdout.pipe(compileScalar.stdin); - return Promise.all([proc, compileScalar].map(promisifySpawn)); + await Promise.all([proc, compileScalar].map(promisifySpawn)); } }; }