From 74dae20e995904a246307bdcc6bdde80da64dcd6 Mon Sep 17 00:00:00 2001 From: partouf Date: Thu, 28 Dec 2017 14:50:26 +0100 Subject: [PATCH] darwin works the same as linux here --- lib/compilers/WSL-CL.js | 2 +- lib/compilers/Wine-CL.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compilers/WSL-CL.js b/lib/compilers/WSL-CL.js index 6e18fbcc4..dda2040cc 100644 --- a/lib/compilers/WSL-CL.js +++ b/lib/compilers/WSL-CL.js @@ -37,7 +37,7 @@ function compileCl(info, env) { const compile = new Compile(info, env); compile.asm = new asm.AsmParser(env.compilerProps); info.supportsFiltersInBinary = true; - if (process.platform === "linux") { + if ((process.platform === "linux") || (process.platform === "darwin")) { const origExec = compile.exec; compile.exec = function (command, args, options) { return origExec(command, args, options); diff --git a/lib/compilers/Wine-CL.js b/lib/compilers/Wine-CL.js index 647c04945..4ad41a38d 100644 --- a/lib/compilers/Wine-CL.js +++ b/lib/compilers/Wine-CL.js @@ -30,7 +30,7 @@ function compileCl(info, env) { var compile = new Compile(info, env); compile.asm = new asm.AsmParser(env.compilerProps); info.supportsFiltersInBinary = true; - if (process.platform == "linux") { + if ((process.platform === "linux") || (process.platform === "darwin")) { var wine = env.gccProps("wine"); var origExec = compile.exec; compile.exec = function (command, args, options) {