aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/CL.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/CL.js')
-rw-r--r--lib/compilers/CL.js13
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 () {