From: Alex Richardson Date: Wed, 22 Jul 2020 17:32:34 +0000 (+0100) Subject: [libcxx] Fix default argument for merge_archives.py -L flag X-Git-Tag: llvmorg-13-init~17120 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e59778a66a91225c3f9c7b46e3e86e50994dbe14;p=platform%2Fupstream%2Fllvm.git [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 --- 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',