This commit is contained in:
Nishi 2026-05-12 09:02:25 +09:00
commit 9520be0be0
2 changed files with 5 additions and 3 deletions

View file

@ -7,8 +7,6 @@ Watcom.description = "Open Watcom";
Watcom.output = function(target) { Watcom.output = function(target) {
if(target instanceof pmake.LibraryProject) { if(target instanceof pmake.LibraryProject) {
return target.output + ".lib"; return target.output + ".lib";
} else if(target instanceof pmake.ExecutableProject) {
return target.output + ".exe";
} }
return pmake.Compiler.prototype.output.call(this, target); return pmake.Compiler.prototype.output.call(this, target);

View file

@ -193,7 +193,11 @@ Compiler.prototype.output = function(target) {
} else if(target instanceof pmake.LibraryProject) { } else if(target instanceof pmake.LibraryProject) {
return "lib" + target.output + ".a"; return "lib" + target.output + ".a";
} else if(target instanceof pmake.ExecutableProject) { } else if(target instanceof pmake.ExecutableProject) {
return target.output; if(pmake.system.target == "Windows"){
return target.output + ".exe";
}else{
return target.output;
}
} }
return target.output; return target.output;