Show More
@@ -342,11 +342,17 b' class buildhgexe(build_ext):' | |||
|
342 | 342 | def build_extensions(self): |
|
343 | 343 | if os.name != 'nt': |
|
344 | 344 | return |
|
345 | if isinstance(self.compiler, HackedMingw32CCompiler): | |
|
346 | self.compiler.compiler_so = self.compiler.compiler # no -mdll | |
|
347 | self.compiler.dll_libraries = [] # no -lmsrvc90 | |
|
345 | 348 | objects = self.compiler.compile(['mercurial/exewrapper.c'], |
|
346 | 349 | output_dir=self.build_temp) |
|
347 | 350 | dir = os.path.dirname(self.get_ext_fullpath('dummy')) |
|
348 | 351 | target = os.path.join(dir, 'hg') |
|
352 | pythonlib = ("python%d%d" % | |
|
353 | (sys.hexversion >> 24, (sys.hexversion >> 16) & 0xff)) | |
|
349 | 354 | self.compiler.link_executable(objects, target, |
|
355 | libraries=[pythonlib], | |
|
350 | 356 | output_dir=self.build_temp) |
|
351 | 357 | |
|
352 | 358 | class hginstallscripts(install_scripts): |
General Comments 0
You need to be logged in to leave comments.
Login now