Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd2983c

Browse files
committed
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.
1 parent b8c9417 commit bd2983c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/distutils/ccompiler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ def _prep_compile (self, sources, output_dir):
366366
"""
367367
# Get the list of expected output (object) files
368368
objects = self.object_filenames (sources,
369+
strip_dir=1,
369370
output_dir=output_dir)
370371

371372
if self.force:

0 commit comments

Comments
 (0)