Fix distutils so that libffi will cross-compile between darwin/x86 and darwin/ppc

This commit is contained in:
Bob Ippolito 2006-05-26 14:07:23 +00:00
parent c6f5c871b9
commit ad647859f4
2 changed files with 3 additions and 5 deletions

View file

@ -15,7 +15,6 @@
from distutils.file_util import move_file
from distutils.dir_util import mkpath
from distutils.dep_util import newer_pairwise, newer_group
from distutils.sysconfig import python_build
from distutils.util import split_quoted, execute
from distutils import log
@ -368,7 +367,7 @@ def _setup_compile(self, outdir, macros, incdirs, sources, depends,
# Get the list of expected output (object) files
objects = self.object_filenames(sources,
strip_dir=python_build,
strip_dir=0,
output_dir=outdir)
assert len(objects) == len(sources)
@ -475,8 +474,7 @@ def _prep_compile(self, sources, output_dir, depends=None):
which source files can be skipped.
"""
# Get the list of expected output (object) files
objects = self.object_filenames(sources, strip_dir=python_build,
output_dir=output_dir)
objects = self.object_filenames(sources, output_dir=output_dir)
assert len(objects) == len(sources)
if self.force:

View file

@ -29,7 +29,7 @@ ffi_platforms = {
# Build all darwin related files on all supported darwin architectures, this
# makes it easier to build universal binaries.
if 0:
if 1:
all_darwin = ('X86_DARWIN', 'POWERPC_DARWIN')
all_darwin_files = []
for pn in all_darwin: