aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/typescript.js
diff options
context:
space:
mode:
authorMatt Godbolt <matt@godbolt.org>2022-05-09 23:13:50 -0500
committerGitHub <noreply@github.com>2022-05-09 23:13:50 -0500
commitf2c1e0bd315fbce55582c440f2d3c8c922a5083a (patch)
treec726d7e1e56fe5b97db357dd0f8c9517c90ddaeb /lib/compilers/typescript.js
parent141fa735217859d5ebc2985c5eabd2a780246485 (diff)
downloadcompiler-explorer-f2c1e0bd315fbce55582c440f2d3c8c922a5083a.tar.gz
compiler-explorer-f2c1e0bd315fbce55582c440f2d3c8c922a5083a.zip
The Grand Reformat (#3643)gh-2830
* The Grand Reformat - everything made prettier...literally - some tweaks to include a few more files, including documentation - minor changes to format style - some tiny `// prettier-ignore` changes to keep a few things the way we like them - a couple of super minor tweaks to embedded document types to ensure they format correctly
Diffstat (limited to 'lib/compilers/typescript.js')
-rw-r--r--lib/compilers/typescript.js22
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'}];
}