Skip to content

Commit e59778a

Browse files
committed
[libcxx] Fix default argument for merge_archives.py -L flag
If we use the default of None, we get a python exception in find_and_diagnose_missing() instead of printing a sensible error message. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D84342
1 parent b98f902 commit e59778a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/utils/merge_archives.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def main():
9393
parser.add_argument(
9494
'-L', dest='search_paths',
9595
help='Paths to search for the libraries along', action='append',
96-
nargs=1)
96+
nargs=1, default=[])
9797
parser.add_argument(
9898
'--ar', dest='ar_exe', required=False,
9999
help='The ar executable to use, finds \'ar\' in the path if not given',

0 commit comments

Comments
 (0)