[Patch #444854 from twburton]

Add executable extension, needed to get the program name right on Win32
This commit is contained in:
Andrew M. Kuchling 2001-08-16 14:08:02 +00:00
parent 6fb8d3a3d6
commit b1d6029437
1 changed files with 4 additions and 1 deletions

View File

@ -148,10 +148,13 @@ class config (Command):
libraries, library_dirs, lang): libraries, library_dirs, lang):
(src, obj) = self._compile(body, headers, include_dirs, lang) (src, obj) = self._compile(body, headers, include_dirs, lang)
prog = os.path.splitext(os.path.basename(src))[0] prog = os.path.splitext(os.path.basename(src))[0]
self.temp_files.append(prog) # XXX should be prog + exe_ext
self.compiler.link_executable([obj], prog, self.compiler.link_executable([obj], prog,
libraries=libraries, libraries=libraries,
library_dirs=library_dirs) library_dirs=library_dirs)
prog = prog + self.compiler.exe_extension
self.temp_files.append(prog)
return (src, obj, prog) return (src, obj, prog)
def _clean (self, *filenames): def _clean (self, *filenames):