aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/clean.js
diff options
context:
space:
mode:
authorPartouf <partouf@gmail.com>2018-10-06 14:24:10 +0200
committerPartouf <partouf@gmail.com>2018-10-06 23:56:49 +0200
commiteda3b9fd88549af9c7c80ed2ca659376193dd373 (patch)
tree683c6b908fa92a0894587b5c014bf992cbd5c646 /lib/compilers/clean.js
parent05e00e7075c8696bf12870f4e00339506da0913e (diff)
downloadcompiler-explorer-eda3b9fd88549af9c7c80ed2ca659376193dd373.tar.gz
compiler-explorer-eda3b9fd88549af9c7c80ed2ca659376193dd373.zip
add cleanpath for binary mode
Diffstat (limited to 'lib/compilers/clean.js')
-rw-r--r--lib/compilers/clean.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/compilers/clean.js b/lib/compilers/clean.js
index d5a0d8bcf..135473bb8 100644
--- a/lib/compilers/clean.js
+++ b/lib/compilers/clean.js
@@ -43,10 +43,12 @@ class CleanCompiler extends BaseCompiler {
runCompiler(compiler, options, inputFilename, execOptions) {
const tmpDir = path.dirname(inputFilename);
- const moduleName = path.basename(inputFilename, '.icl');
+ const moduleName = path.basename(inputFilename, '.icl');
+ const compilerPath = path.dirname(compiler);
execOptions = this.getDefaultExecOptions();
execOptions.customCwd = tmpDir;
- execOptions.env.CLEANLIB = path.join(path.dirname(compiler), "../exe");
+ execOptions.env.CLEANLIB = path.join(compilerPath, "../exe");
+ execOptions.env.CLEANPATH = path.join(compilerPath, "../StdEnv");
options.pop();
options.push(moduleName);
return super.runCompiler(compiler, options, moduleName, execOptions).then(result => {