Skip to content

Commit c091073

Browse files
Merge pull request #126 from wdaniau/buildProblemPathWin
environment processing
2 parents f324b11 + 3502db4 commit c091073

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/features/linter-provider.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,9 @@ export default class FortranLintingProvider {
3333
*
3434
* see also: https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html
3535
*/
36-
const env = {
37-
...process.env,
38-
LC_ALL: 'C'
39-
};
40-
if (process.platform == 'win32') {
36+
const env = process.env;
37+
env.LC_ALL = 'C';
38+
if (process.platform === 'win32') {
4139
// Windows needs to know the path of other tools
4240
if (!env.Path.includes(path.dirname(command))) {
4341
env.Path = `${path.dirname(command)}${path.delimiter}${env.Path}`;

0 commit comments

Comments
 (0)