diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2002-11-14 01:29:00 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2002-11-14 01:29:00 (GMT) |
commit | 9a38dcf05743347c556660347a014620e3625949 (patch) | |
tree | 4cd77c83eb769994663d6bb8d05f01967617774a /Lib | |
parent | b2db587b118b1ebb90d20d724bbb826290d83c35 (diff) | |
download | cpython-9a38dcf05743347c556660347a014620e3625949.zip cpython-9a38dcf05743347c556660347a014620e3625949.tar.gz cpython-9a38dcf05743347c556660347a014620e3625949.tar.bz2 |
[Bug #599248] ext module generation problem
If you have source files srcdir1/foo.c and srcdir2/foo.c, the
temporary .o for both files is written to build/temp.<platform>/foo.o.
This patch sets strip_dir to false for both calls to object_filename,
so now the object files are written to temp.<platform>/srcdir1/foo.o
and .../srcdir2/foo.o.
2.2 bugfix candidate
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/distutils/ccompiler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/ccompiler.py b/Lib/distutils/ccompiler.py index 8898f51..8aca058 100644 --- a/Lib/distutils/ccompiler.py +++ b/Lib/distutils/ccompiler.py @@ -366,7 +366,7 @@ class CCompiler: extra = [] # Get the list of expected output (object) files - objects = self.object_filenames(sources, 1, outdir) + objects = self.object_filenames(sources, 0, outdir) assert len(objects) == len(sources) # XXX should redo this code to eliminate skip_source entirely. @@ -472,7 +472,7 @@ class CCompiler: which source files can be skipped. """ # Get the list of expected output (object) files - objects = self.object_filenames(sources, strip_dir=1, + objects = self.object_filenames(sources, strip_dir=0, output_dir=output_dir) assert len(objects) == len(sources) |