aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/fortran.js
diff options
context:
space:
mode:
authordbroemmel <d.broemmel@fz-juelich.de>2018-10-23 12:01:24 +0200
committerdbroemmel <d.broemmel@fz-juelich.de>2018-10-23 12:01:24 +0200
commit90f60d76329c4f94b35b38d08ff232b6f2c6dd16 (patch)
tree5d7dc53262ce9d5eeade60ddd1c265da55a28b23 /lib/compilers/fortran.js
parent6c5f1ddc2be705304a21950af3b1640bd15ddcaf (diff)
downloadcompiler-explorer-90f60d76329c4f94b35b38d08ff232b6f2c6dd16.tar.gz
compiler-explorer-90f60d76329c4f94b35b38d08ff232b6f2c6dd16.zip
Changes according to PR1127.
Diffstat (limited to 'lib/compilers/fortran.js')
-rw-r--r--lib/compilers/fortran.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/compilers/fortran.js b/lib/compilers/fortran.js
index 77a92d04f..c0086c973 100644
--- a/lib/compilers/fortran.js
+++ b/lib/compilers/fortran.js
@@ -1,4 +1,5 @@
-// Copyright (c) 2017, Rubén Rincón
+// Copyright (c) 2018, Forschungzentrum Juelich GmbH
+// Juelich Supercomputing Centre
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
@@ -31,7 +32,8 @@ class FortranCompiler extends BaseCompiler {
if (!execOptions) {
execOptions = this.getDefaultExecOptions();
}
- // switch working directory of compiler to /tmp/... to be able to generate .mod files
+ // Switch working directory of compiler to temp directory that also holds the source.
+ // This makes it possible to generate .mod files.
execOptions.customCwd = path.dirname(inputFilename);
return this.exec(compiler, options, execOptions).then(result => {