Commit b1d60294 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

[Patch #444854 from twburton]

    Add executable extension, needed to get the program name right on Win32
parent 6fb8d3a3
......@@ -148,10 +148,13 @@ class config (Command):
libraries, library_dirs, lang):
(src, obj) = self._compile(body, headers, include_dirs, lang)
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,
libraries=libraries,
library_dirs=library_dirs)
prog = prog + self.compiler.exe_extension
self.temp_files.append(prog)
return (src, obj, prog)
def _clean (self, *filenames):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment