From e59778a66a91225c3f9c7b46e3e86e50994dbe14 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Wed, 22 Jul 2020 18:32:34 +0100 Subject: [PATCH] [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 --- libcxx/utils/merge_archives.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/utils/merge_archives.py b/libcxx/utils/merge_archives.py index cc96cb2..d751526 100755 --- a/libcxx/utils/merge_archives.py +++ b/libcxx/utils/merge_archives.py @@ -93,7 +93,7 @@ def main(): 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', -- 2.7.4