diff options
Diffstat (limited to 'lib/compilers/typescript.js')
-rw-r--r-- | lib/compilers/typescript.js | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/lib/compilers/typescript.js b/lib/compilers/typescript.js index 5fd1037c9..732e482ca 100644 --- a/lib/compilers/typescript.js +++ b/lib/compilers/typescript.js @@ -37,17 +37,18 @@ export class TypeScriptCompiler extends BaseCompiler { async runCompiler(compiler, options, inputFilename, execOptions) { // These options make Clang produce an IR - const newOptions = [ - '--emit=mlir-llvm', - inputFilename, - ]; + const newOptions = ['--emit=mlir-llvm', inputFilename]; if (!this.tscSharedLib) { newOptions.push('-nogc'); } const output = await this.runCompilerRawOutput( - this.tscJit, newOptions, this.filename(inputFilename), execOptions); + this.tscJit, + newOptions, + this.filename(inputFilename), + execOptions, + ); if (output.code !== 0) { return [{text: 'Failed to run compiler to get MLIR code'}]; } @@ -57,10 +58,7 @@ export class TypeScriptCompiler extends BaseCompiler { async generateIR(inputFilename, options, filters) { // These options make Clang produce an IR - const newOptions = [ - '--emit=llvm', - inputFilename, - ]; + const newOptions = ['--emit=llvm', inputFilename]; if (!this.tscSharedLib) { newOptions.push('-nogc'); @@ -71,7 +69,11 @@ export class TypeScriptCompiler extends BaseCompiler { execOptions.maxOutput = 1024 * 1024 * 1024; const output = await this.runCompilerRawOutput( - this.tscJit, newOptions, this.filename(inputFilename), execOptions); + this.tscJit, + newOptions, + this.filename(inputFilename), + execOptions, + ); if (output.code !== 0) { return [{text: 'Failed to run compiler to get IR code'}]; } |