##// END OF EJS Templates
setup: fix build_hgexe for mingw32 compiler...
Adrian Buehlmann -
r17246:bf5bb38b stable
parent child Browse files
Show More
@@ -342,11 +342,17 b' class buildhgexe(build_ext):'
342 def build_extensions(self):
342 def build_extensions(self):
343 if os.name != 'nt':
343 if os.name != 'nt':
344 return
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 objects = self.compiler.compile(['mercurial/exewrapper.c'],
348 objects = self.compiler.compile(['mercurial/exewrapper.c'],
346 output_dir=self.build_temp)
349 output_dir=self.build_temp)
347 dir = os.path.dirname(self.get_ext_fullpath('dummy'))
350 dir = os.path.dirname(self.get_ext_fullpath('dummy'))
348 target = os.path.join(dir, 'hg')
351 target = os.path.join(dir, 'hg')
352 pythonlib = ("python%d%d" %
353 (sys.hexversion >> 24, (sys.hexversion >> 16) & 0xff))
349 self.compiler.link_executable(objects, target,
354 self.compiler.link_executable(objects, target,
355 libraries=[pythonlib],
350 output_dir=self.build_temp)
356 output_dir=self.build_temp)
351
357
352 class hginstallscripts(install_scripts):
358 class hginstallscripts(install_scripts):
General Comments 0
You need to be logged in to leave comments. Login now