##// END OF EJS Templates
setup: avoid linker warnings on Windows about multiple export specifications...
Matt Harbison -
r32782:9a4adc76 default
parent child Browse files
Show More
@@ -704,6 +704,23 b' except ImportError:'
704 class HackedMingw32CCompiler(object):
704 class HackedMingw32CCompiler(object):
705 pass
705 pass
706
706
707 if os.name == 'nt':
708 # Allow compiler/linker flags to be added to Visual Studio builds. Passing
709 # extra_link_args to distutils.extensions.Extension() doesn't have any
710 # effect.
711 from distutils import msvccompiler
712
713 compiler = msvccompiler.MSVCCompiler
714
715 class HackedMSVCCompiler(msvccompiler.MSVCCompiler):
716 def initialize(self):
717 compiler.initialize(self)
718 # "warning LNK4197: export 'func' specified multiple times"
719 self.ldflags_shared.append('/ignore:4197')
720 self.ldflags_shared_debug.append('/ignore:4197')
721
722 msvccompiler.MSVCCompiler = HackedMSVCCompiler
723
707 packagedata = {'mercurial': ['locale/*/LC_MESSAGES/hg.mo',
724 packagedata = {'mercurial': ['locale/*/LC_MESSAGES/hg.mo',
708 'help/*.txt',
725 'help/*.txt',
709 'help/internals/*.txt',
726 'help/internals/*.txt',
General Comments 0
You need to be logged in to leave comments. Login now