diff options
Diffstat (limited to 'lib/compilers')
-rw-r--r-- | lib/compilers/argument-parsers.ts | 7 | ||||
-rw-r--r-- | lib/compilers/julia.ts | 15 |
2 files changed, 11 insertions, 11 deletions
diff --git a/lib/compilers/argument-parsers.ts b/lib/compilers/argument-parsers.ts index b1161101f..ccc0c04c9 100644 --- a/lib/compilers/argument-parsers.ts +++ b/lib/compilers/argument-parsers.ts @@ -452,3 +452,10 @@ export class ToitParser extends BaseParser { return compiler; } } + +export class JuliaParser extends BaseParser { + static override async parse(compiler) { + await JuliaParser.getOptions(compiler, '--help'); + return compiler; + } +} diff --git a/lib/compilers/julia.ts b/lib/compilers/julia.ts index dee167436..86b042362 100644 --- a/lib/compilers/julia.ts +++ b/lib/compilers/julia.ts @@ -31,7 +31,7 @@ import {ParseFiltersAndOutputOptions} from '../../types/features/filters.interfa import {BaseCompiler} from '../base-compiler'; import * as utils from '../utils'; -import {BaseParser} from './argument-parsers'; +import {JuliaParser} from './argument-parsers'; export class JuliaCompiler extends BaseCompiler { private compilerWrapperPath: string; @@ -96,7 +96,7 @@ export class JuliaCompiler extends BaseCompiler { } override getArgumentParser() { - return BaseParser; + return JuliaParser; } override fixExecuteParametersForInterpreting(executeParameters, outputFilename, key) { @@ -120,16 +120,9 @@ export class JuliaCompiler extends BaseCompiler { execOptions.customCwd = dirPath; } - // compiler wrapper, then input should be first argument, not last - const wrapperOptions = options.filter(opt => opt !== inputFilename); - const juliaOptions = [this.compilerWrapperPath, '--']; - if (options.includes('-h') || options.includes('--help')) { - juliaOptions.push('--help'); - } else { - wrapperOptions.unshift(inputFilename, this.getOutputFilename(dirPath, this.outputFilebase)); - juliaOptions.push(...wrapperOptions); - } + options.push(this.getOutputFilename(dirPath, this.outputFilebase)); + juliaOptions.push(...options); const execResult = await this.exec(compiler, juliaOptions, execOptions); return { |