summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-01-16 03:10:43 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-01-16 03:10:43 (GMT)
commitbd2983caf39a6614924929af5b6e66e099749445 (patch)
treea547d64c846f0c173e2adb1767a091767c80f8d5 /Lib/distutils
parentb8c941771a5f92d68cefb1fec1636947e8a99f4e (diff)
downloadcpython-bd2983caf39a6614924929af5b6e66e099749445.zip
cpython-bd2983caf39a6614924929af5b6e66e099749445.tar.gz
cpython-bd2983caf39a6614924929af5b6e66e099749445.tar.bz2
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.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/ccompiler.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/distutils/ccompiler.py b/Lib/distutils/ccompiler.py
index 53901b3..5e0b328 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: