From: Andrew M. Kuchling Date: Tue, 16 Jan 2001 03:10:43 +0000 (+0000) Subject: Add strip_dir argument to the single call to .object_filenames(), to X-Git-Tag: v2.1a1~245 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd2983caf39a6614924929af5b6e66e099749445;p=python Add strip_dir argument to the single call to .object_filenames(), to prevent creating files such as build/lib.whatever/Modules/foo.o when given a source filename such as Modules/foo.c. --- diff --git a/Lib/distutils/ccompiler.py b/Lib/distutils/ccompiler.py index 53901b3362..5e0b328042 100644 --- a/Lib/distutils/ccompiler.py +++ b/Lib/distutils/ccompiler.py @@ -366,6 +366,7 @@ class CCompiler: """ # Get the list of expected output (object) files objects = self.object_filenames (sources, + strip_dir=1, output_dir=output_dir) if self.force: