diff options
author | nickpdemarco <nickpdemarco@gmail.com> | 2023-10-11 14:43:05 -0400 |
---|---|---|
committer | nickpdemarco <nickpdemarco@gmail.com> | 2023-10-11 14:43:05 -0400 |
commit | 9cda199e40c920fcc9c53082b0dabb17d31a8b7f (patch) | |
tree | a4e9a03a9feea17376f5990e19c12818d32ec95e /lib/compilers/fortran.ts | |
parent | 55a2b1455f823026c78b9219f93799af00ef60ae (diff) | |
parent | 10796b3696cf1eef928de8c750b4d3350ee0c2db (diff) | |
download | compiler-explorer-9cda199e40c920fcc9c53082b0dabb17d31a8b7f.tar.gz compiler-explorer-9cda199e40c920fcc9c53082b0dabb17d31a8b7f.zip |
Merge main, resolve conflicts with vala
Diffstat (limited to 'lib/compilers/fortran.ts')
-rw-r--r-- | lib/compilers/fortran.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/compilers/fortran.ts b/lib/compilers/fortran.ts index 5f13eb4ac..da2e9b53a 100644 --- a/lib/compilers/fortran.ts +++ b/lib/compilers/fortran.ts @@ -27,17 +27,26 @@ import path from 'path'; import type {CompilationResult, ExecutionOptions} from '../../types/compilation/compilation.interfaces.js'; import {BaseCompiler} from '../base-compiler.js'; import * as utils from '../utils.js'; +import {GccFortranParser} from './argument-parsers.js'; export class FortranCompiler extends BaseCompiler { static get key() { return 'fortran'; } + protected override getArgumentParser(): any { + return GccFortranParser; + } + + override getStdVerOverrideDescription(): string { + return 'Change the Fortran standard version of the compiler.'; + } + override async runCompiler( compiler: string, options: string[], inputFilename: string, - execOptions: ExecutionOptions, + execOptions: ExecutionOptions & {env: Record<string, string>}, ): Promise<CompilationResult> { if (!execOptions) { execOptions = this.getDefaultExecOptions(); |