Skip to content

Commit

Permalink
Allow -v to libtool
Browse files Browse the repository at this point in the history
This is useful for debugging. Without it being in these lists the static archive fails

Closes bazelbuild#16367.

PiperOrigin-RevId: 508325556
Change-Id: I6d0b2c19123132f0d8a41e8925de9c57197a10bf
  • Loading branch information
keith authored and copybara-github committed Feb 9, 2023
1 parent 754216b commit de03a23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/objc/libtool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/objc/libtool_check_unique.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit de03a23

Please sign in to comment.