diff options
Diffstat (limited to 'lib/compilers/clean.js')
-rw-r--r-- | lib/compilers/clean.js | 6 |
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 => { |