diff --git a/lib/tooling/base-tool.js b/lib/tooling/base-tool.js index 84d58a72e..ec4f2c438 100644 --- a/lib/tooling/base-tool.js +++ b/lib/tooling/base-tool.js @@ -48,6 +48,14 @@ class BaseTool { } exec(toolExe, args, options) { + options = options || {}; + if (toolExe.match(/\.exe$/i)) { + args.unshift(toolExe); + toolExe = this.env.ceProps("wine"); + options.env = options.env || {}; + options.env.WINEDLLOVERRIDES = "vcruntime140=b"; + options.env.WINEDEBUG = "-all"; + } return exec.execute(toolExe, args, options); }