[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
Cr-Mirrored-From: https://chromium.googlesource.com/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: e59778a66a91225c3f9c7b46e3e86e50994dbe14
diff --git a/utils/merge_archives.py b/utils/merge_archives.py
index cc96cb2..d751526 100755
--- a/utils/merge_archives.py
+++ b/utils/merge_archives.py
@@ -93,7 +93,7 @@
parser.add_argument(
'-L', dest='search_paths',
help='Paths to search for the libraries along', action='append',
- nargs=1)
+ nargs=1, default=[])
parser.add_argument(
'--ar', dest='ar_exe', required=False,
help='The ar executable to use, finds \'ar\' in the path if not given',