diff options
author | Andrew Pardoe <apardoe@microsoft.com> | 2017-08-17 22:19:58 -0700 |
---|---|---|
committer | Andrew Pardoe <apardoe@microsoft.com> | 2017-08-17 22:19:58 -0700 |
commit | 78cf1209d855ffbf925ae3a62503b7865109e2fd (patch) | |
tree | 1651fb46cd4f314f78879bd4d895f5e58e7c2f10 /lib/compilers/CL.js | |
parent | 5e71f73c3caf157a3bb3ee2e14ad58ab4b69e74d (diff) | |
download | compiler-explorer-78cf1209d855ffbf925ae3a62503b7865109e2fd.tar.gz compiler-explorer-78cf1209d855ffbf925ae3a62503b7865109e2fd.zip |
Cleaned up changes to get rid of crazy parse fail
Diffstat (limited to 'lib/compilers/CL.js')
-rw-r--r-- | lib/compilers/CL.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/compilers/CL.js b/lib/compilers/CL.js index b165773d3..cfcaaed00 100644 --- a/lib/compilers/CL.js +++ b/lib/compilers/CL.js @@ -33,14 +33,17 @@ function compileCl(info, env) { var wine = env.gccProps("wine"); var origExec = compile.exec; compile.exec = function (command, args, options) { - if (command.toLowerCase().endsWith(".exe")) { - args.unshift(command); - command = wine; - } +// AP: Don't run under Wine! Should make this a separate file. +// if (command.toLowerCase().endsWith(".exe")) { +// args.unshift(command); +// command = wine; +// } return origExec(command, args, options); }; compile.filename = function (fn) { - return 'Z:' + fn; + // TODO AP: Don't run on Z:, and change the path from Unix-style to Windows-style + // return 'Z:' + fn; + return fn.replace("/mnt/c/tmp", "c:/tmp"); }; } compile.supportsObjdump = function () { |