Lines 751-760
Link Here
|
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): |
753 |
compiler_so = self.compiler_so |
753 |
compiler_so = self.compiler_so |
|
|
754 |
compiler_cxx_so = self.compiler_cxx_so |
754 |
if sys.platform == 'darwin': |
755 |
if sys.platform == 'darwin': |
755 |
compiler_so = _darwin_compiler_fixup(compiler_so, cc_args + extra_postargs) |
756 |
compiler_so = _darwin_compiler_fixup(compiler_so, cc_args + extra_postargs) |
756 |
try: |
757 |
try: |
757 |
self.spawn(compiler_so + cc_args + [src, '-o', obj] + |
758 |
if self.language == "c++": |
|
|
759 |
cc = compiler_cxx_so + cc_args |
760 |
else: |
761 |
cc = compiler_so + cc_args |
762 |
self.spawn(cc + cc_args + [src, '-o', obj] + |
758 |
extra_postargs) |
763 |
extra_postargs) |
759 |
except DistutilsExecError, msg: |
764 |
except DistutilsExecError, msg: |
760 |
raise CompileError, msg |
765 |
raise CompileError, msg |
Lines 799-805
Link Here
|
799 |
raise CompileError, msg |
804 |
raise CompileError, msg |
800 |
else: # for other files use the C-compiler |
805 |
else: # for other files use the C-compiler |
801 |
try: |
806 |
try: |
802 |
self.spawn(self.compiler_so + cc_args + [src, '-o', obj] + |
807 |
if self.language == "c++": |
|
|
808 |
cc = self.compiler_cxx_so + cc_args |
809 |
else: |
810 |
cc = self.compiler_so + cc_args |
811 |
self.spawn(cc + cc_args + [src, '-o', obj] + |
803 |
extra_postargs) |
812 |
extra_postargs) |
804 |
except DistutilsExecError, msg: |
813 |
except DistutilsExecError, msg: |
805 |
raise CompileError, msg |
814 |
raise CompileError, msg |