Fix undefined compiler flag issue

dev/git-series/gccdum
Johan Engelen 7 years ago
parent 5915840866
commit 1d9c8c0592

@ -268,15 +268,17 @@ Compile.prototype.compile = function (source, compiler, options, filters) {
options = options.concat(compilerInfo.intelAsm.split(" "));
}
var compileToAsm;
var asmFlag = compilerInfo.asmFlag ? compilerInfo.asmFlag : "-S";
var outputFlag = compilerInfo.outputFlag ? compilerInfo.outputFlag : "-o";
if (!filters.binary) {
compileToAsm = compilerProps("compileToAsm", compilerInfo.asmFlag).split(" ");
compileToAsm = compilerProps("compileToAsm", asmFlag).split(" ");
} else {
compileToAsm = compilerProps("compileToBinary", "").split(" ");
}
if (compilerInfo.isCl) {
options = options.concat(['/c', '/Fa' + outputFilename, '/Fo' + outputFilename + ".obj"]);
} else {
options = options.concat(['-g', compilerInfo.outputFlag, outputFilename]);
options = options.concat(['-g', outputFlag, outputFilename]);
}
options = options.concat(compileToAsm).concat([inputFilename]);

Loading…
Cancel
Save