File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ const FortranFixedForm = {
7
7
"File Based" : {
8
8
command,
9
9
args ( { filepath } ) {
10
- const cmd = `gfortran '${ filepath } ' -ffixed-form -o /tmp/f.out && /tmp/f.out`
10
+ const tempOutFile = GrammarUtils . createTempPath ( "f-" , ".out" )
11
+ const cmd = `gfortran '${ filepath } ' -ffixed-form -o ${ tempOutFile } && ${ tempOutFile } `
11
12
return GrammarUtils . formatArgs ( cmd )
12
13
} ,
13
14
} ,
@@ -16,7 +17,8 @@ const FortranFreeForm = {
16
17
"File Based" : {
17
18
command,
18
19
args ( { filepath } ) {
19
- const cmd = `gfortran '${ filepath } ' -ffree-form -o /tmp/f90.out && /tmp/f90.out`
20
+ const tempOutFile = GrammarUtils . createTempPath ( "f90-" , ".out" )
21
+ const cmd = `gfortran '${ filepath } ' -ffree-form -o ${ tempOutFile } && ${ tempOutFile } `
20
22
return GrammarUtils . formatArgs ( cmd )
21
23
} ,
22
24
} ,
You can’t perform that action at this time.
0 commit comments