# HG changeset patch # User elrood # Date 1229624673 -3600 # Node ID 6c850977a941e21bc54d6cafdd7d5c47de5c6aa4 # Parent e8337278f49be35923190ad9f038aaabdb8899b7 modified gen/linker.cpp to only append .exe suffix on windows if not already present diff -r e8337278f49b -r 6c850977a941 gen/linker.cpp --- a/gen/linker.cpp Thu Dec 18 19:21:44 2008 +0100 +++ b/gen/linker.cpp Thu Dec 18 19:24:33 2008 +0100 @@ -72,7 +72,7 @@ else exestr = "a.out"; } - if (global.params.os == OSWindows) + if (global.params.os == OSWindows && !(exestr.substr(exestr.length()-4) == ".exe")) exestr.append(".exe"); std::string outopt = "-o=" + exestr; @@ -240,7 +240,7 @@ else exestr = "a.out"; } - if (global.params.os == OSWindows) + if (global.params.os == OSWindows && !(exestr.rfind(".exe") == exestr.length()-4)) exestr.append(".exe"); args.push_back("-o");