Lines 749-755
Link Here
|
749 |
|
749 |
|
750 |
|
750 |
|
751 |
class MyUnixCCompiler(distutils.unixccompiler.UnixCCompiler): |
751 |
class MyUnixCCompiler(distutils.unixccompiler.UnixCCompiler): |
752 |
def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): |
752 |
def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts, lang=''): |
753 |
compiler_so = self.compiler_so |
753 |
compiler_so = self.compiler_so |
754 |
if sys.platform == 'darwin': |
754 |
if sys.platform == 'darwin': |
755 |
compiler_so = _darwin_compiler_fixup(compiler_so, cc_args + extra_postargs) |
755 |
compiler_so = _darwin_compiler_fixup(compiler_so, cc_args + extra_postargs) |
Lines 788-794
Link Here
|
788 |
import distutils.cygwinccompiler |
788 |
import distutils.cygwinccompiler |
789 |
from distutils.errors import DistutilsExecError, CompileError |
789 |
from distutils.errors import DistutilsExecError, CompileError |
790 |
|
790 |
|
791 |
def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): |
791 |
def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts, lang=''): |
792 |
if ext == '.rc' or ext == '.res': |
792 |
if ext == '.rc' or ext == '.res': |
793 |
# gcc needs '.res' and '.rc' compiled to object files !!! |
793 |
# gcc needs '.res' and '.rc' compiled to object files !!! |
794 |
try: |
794 |
try: |