Show More
@@ -784,11 +784,11 b' try:' | |||
|
784 | 784 | from distutils import cygwinccompiler |
|
785 | 785 | |
|
786 | 786 | # the -mno-cygwin option has been deprecated for years |
|
787 | compiler = cygwinccompiler.Mingw32CCompiler | |
|
787 | mingw32compilerclass = cygwinccompiler.Mingw32CCompiler | |
|
788 | 788 | |
|
789 | 789 | class HackedMingw32CCompiler(cygwinccompiler.Mingw32CCompiler): |
|
790 | 790 | def __init__(self, *args, **kwargs): |
|
791 | compiler.__init__(self, *args, **kwargs) | |
|
791 | mingw32compilerclass.__init__(self, *args, **kwargs) | |
|
792 | 792 | for i in 'compiler compiler_so linker_exe linker_so'.split(): |
|
793 | 793 | try: |
|
794 | 794 | getattr(self, i).remove('-mno-cygwin') |
@@ -809,11 +809,11 b" if os.name == 'nt':" | |||
|
809 | 809 | # effect. |
|
810 | 810 | from distutils import msvccompiler |
|
811 | 811 | |
|
812 | compiler = msvccompiler.MSVCCompiler | |
|
812 | msvccompilerclass = msvccompiler.MSVCCompiler | |
|
813 | 813 | |
|
814 | 814 | class HackedMSVCCompiler(msvccompiler.MSVCCompiler): |
|
815 | 815 | def initialize(self): |
|
816 | compiler.initialize(self) | |
|
816 | msvccompilerclass.initialize(self) | |
|
817 | 817 | # "warning LNK4197: export 'func' specified multiple times" |
|
818 | 818 | self.ldflags_shared.append('/ignore:4197') |
|
819 | 819 | self.ldflags_shared_debug.append('/ignore:4197') |
General Comments 0
You need to be logged in to leave comments.
Login now