diff options
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}`); |