Skip to content

Commit 6217a92

Browse files
committed
Activate -ffree-line-length-none only for gfortran
1 parent c3b0a05 commit 6217a92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/linter-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export class FortranLintingProvider {
275275
// gfortran and flang have compiler flags for restricting the width of
276276
// the code.
277277
// You can always override by passing in the correct args as extraArgs
278-
if (compiler !== 'ifort' && compiler !== 'ifx') {
278+
if (compiler === 'gfortran') {
279279
const ln: number = config.get('fortls.maxLineLength');
280280
const lnStr: string = ln === -1 ? 'none' : ln.toString();
281281
args.push(`-ffree-line-length-${lnStr}`, `-ffixed-line-length-${lnStr}`);

0 commit comments

Comments
 (0)