Skip to content

Commit bd295b5

Browse files
authored
[CppExtension] Keep hirachey in build directory (PaddlePaddle#75866)
1 parent 254cf3a commit bd295b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/utils/cpp_extension/cpp_extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ def wrapper(source_filenames, strip_dir=0, output_dir=''):
724724
# if user set build_directory, output objects there.
725725
if build_directory is not None:
726726
objects = [
727-
os.path.join(build_directory, os.path.basename(obj))
727+
os.path.join(build_directory, obj)
728728
for obj in objects
729729
]
730730
# ensure to use abspath

0 commit comments

Comments
 (0)