Skip to content

Commit

Permalink
Propagate PATH to the compiler env. Seems to be required to get icc t…
Browse files Browse the repository at this point in the history
…o work
  • Loading branch information
mattgodbolt committed Mar 18, 2016
1 parent cd8c683 commit 191410c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ Compile.prototype.getRemote = function (compiler) {

Compile.prototype.runCompiler = function (compiler, options, needsMulti) {
var okToCache = true;
var env = {};
var env = {
PATH: process.env.PATH
};
if (needsMulti && this.multiarch) {
env.LIBRARY_PATH = '/usr/lib/' + this.multiarch;
env.C_INCLUDE_PATH = '/usr/include/' + this.multiarch;
Expand Down

0 comments on commit 191410c

Please sign in to comment.