From 3ec52c6c664ced8d446676c2696e5cf4b03af678 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Sun, 12 Feb 2023 14:14:40 -0800 Subject: [PATCH] Allow -v to libtool (#182) This is useful for debugging. Without it being in these lists the static archive fails https://github.com/bazelbuild/bazel/pull/16367 --- crosstool/libtool.sh | 2 +- crosstool/libtool_check_unique.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crosstool/libtool.sh b/crosstool/libtool.sh index c8bcd18..2b7282d 100755 --- a/crosstool/libtool.sh +++ b/crosstool/libtool.sh @@ -107,7 +107,7 @@ function parse_option() { done < "$path" || exit 1 ;; # Flags with no args - -static|-s|-a|-c|-L|-T|-D|-no_warning_for_no_symbols) + -static|-s|-a|-c|-L|-T|-D|-v|-no_warning_for_no_symbols) ARGS+=("${ARG}") ;; # Single-arg flags diff --git a/crosstool/libtool_check_unique.cc b/crosstool/libtool_check_unique.cc index 340e9a3..7ba32de 100644 --- a/crosstool/libtool_check_unique.cc +++ b/crosstool/libtool_check_unique.cc @@ -26,7 +26,7 @@ using std::vector; const regex libRegex = regex(".*\\.a$"); const regex noArgFlags = - regex("-static|-s|-a|-c|-L|-T|-D|-no_warning_for_no_symbols"); + regex("-static|-s|-a|-c|-L|-T|-D|-v|-no_warning_for_no_symbols"); const regex singleArgFlags = regex("-arch_only|-syslibroot|-o"); string getBasename(const string &path) {