diff options
author | Matt Godbolt <matt@godbolt.org> | 2022-04-25 18:22:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 18:22:11 -0500 |
commit | 21b764f392e4b1062e61ec910c590f3dfba4d544 (patch) | |
tree | 2a4ea9342cd816e8f382ff6682c1fb0a42e14474 /lib/compilers/erlang.js | |
parent | d64a8d7e8919b6bedf636004bc493e28e6e5c840 (diff) | |
download | compiler-explorer-21b764f392e4b1062e61ec910c590f3dfba4d544.tar.gz compiler-explorer-21b764f392e4b1062e61ec910c590f3dfba4d544.zip |
Unify comma configuration; and apply format to some files. (#3559)gh-2517
Diffstat (limited to 'lib/compilers/erlang.js')
-rw-r--r-- | lib/compilers/erlang.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/compilers/erlang.js b/lib/compilers/erlang.js index 31018086c..ef57b0d01 100644 --- a/lib/compilers/erlang.js +++ b/lib/compilers/erlang.js @@ -24,13 +24,15 @@ import path from 'path'; -import { BaseCompiler } from '../base-compiler'; -import { logger } from '../logger'; +import {BaseCompiler} from '../base-compiler'; +import {logger} from '../logger'; -import { ErlangParser } from './argument-parsers'; +import {ErlangParser} from './argument-parsers'; export class ErlangCompiler extends BaseCompiler { - static get key() { return 'erlang'; } + static get key() { + return 'erlang'; + } /* eslint-disable no-unused-vars */ optionsForFilter(filters, outputFilename) { @@ -38,7 +40,7 @@ export class ErlangCompiler extends BaseCompiler { '-noshell', '-eval', '{ok, Input} = init:get_argument(input),' + - '{ok, _, Output} = compile:file(Input, [\'S\', binary, no_line_info, report]),' + + "{ok, _, Output} = compile:file(Input, ['S', binary, no_line_info, report])," + `{ok,Fd} = file:open("${outputFilename}", [write]),` + 'beam_listing:module(Fd, Output),' + 'file:close(Fd),' + @@ -78,7 +80,7 @@ export class ErlangCompiler extends BaseCompiler { return this.execCompilerCached( versionCmd, ['-noshell', '-eval', 'io:fwrite("~s~n", [erlang:system_info(otp_release)]), halt().'], - execOptions, + execOptions ); } catch (err) { logger.error(`Unable to get version for compiler '${this.compiler.exe}' - ${err}`); |