aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/pascal.js
diff options
context:
space:
mode:
authorpartouf <partouf@gmail.com>2017-11-29 21:14:34 +0100
committerpartouf <partouf@gmail.com>2017-11-29 21:14:34 +0100
commit77251dec6d0b45c1510622802ef77535af1cf2a7 (patch)
tree439d3d0c6c8d649c856afdc709e68aeba5cf4211 /lib/compilers/pascal.js
parent2446ea582b2b4374682ec9ada7752dfc3e157df9 (diff)
downloadcompiler-explorer-77251dec6d0b45c1510622802ef77535af1cf2a7.tar.gz
compiler-explorer-77251dec6d0b45c1510622802ef77535af1cf2a7.zip
set the output directory so link.res won't be created in the CWD
Diffstat (limited to 'lib/compilers/pascal.js')
-rw-r--r--lib/compilers/pascal.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/compilers/pascal.js b/lib/compilers/pascal.js
index d5eb507e0..cf9357097 100644
--- a/lib/compilers/pascal.js
+++ b/lib/compilers/pascal.js
@@ -160,11 +160,13 @@ function compileFPC(info, env) {
execOptions = this.getDefaultExecOptions();
}
- var projectFile = path.join(path.dirname(inputFilename), "prog.dpr");
+ var tempPath = path.dirname(inputFilename);
+ var projectFile = path.join(tempPath, "prog.dpr");
saveDummyProjectFile(projectFile);
options.pop();
+ options.push('-FE' + tempPath);
options.push('-B');
options.push(projectFile);