File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -142,8 +142,15 @@ export class FortranLintingProvider {
142
142
private getModOutputDir ( compiler : string ) : string [ ] {
143
143
const config = vscode . workspace . getConfiguration ( 'fortran' ) ;
144
144
let modout : string = config . get ( 'linter.modOutput' , '' ) ;
145
- let modFlag = '-J' ;
145
+ let modFlag = '' ;
146
+ // Return if no mod output directory is specified
147
+ if ( modout === '' ) return [ ] ;
146
148
switch ( compiler ) {
149
+ case 'flang' :
150
+ case 'gfortran' :
151
+ modFlag = '-J' ;
152
+ break ;
153
+
147
154
case 'ifx' :
148
155
case 'ifort' :
149
156
modFlag = '-module' ;
@@ -154,13 +161,12 @@ export class FortranLintingProvider {
154
161
break ;
155
162
156
163
default :
157
- modFlag = '-J ' ;
164
+ modFlag = '' ;
158
165
break ;
159
166
}
160
- if ( modout ) {
161
- modout = resolveVariables ( modout ) ;
162
- this . logger . logInfo ( `Linter.moduleOutput: ${ modFlag } ${ modout } ` ) ;
163
- }
167
+
168
+ modout = resolveVariables ( modout ) ;
169
+ this . logger . logInfo ( `Linter.moduleOutput: ${ modFlag } ${ modout } ` ) ;
164
170
return [ modFlag , modout ] ;
165
171
}
166
172
You can’t perform that action at this time.
0 commit comments