1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-11 05:46:58 +03:00

Ignore --verbose

This commit is contained in:
Rui Ueyama 2021-06-17 12:14:42 +09:00
parent f8359fdafd
commit 22ca6bc288
2 changed files with 19 additions and 0 deletions

View File

@ -707,6 +707,7 @@ void parse_nonpositional_args(Context<E> &ctx,
} else if (read_flag(args, "O0")) {
} else if (read_flag(args, "O1")) {
} else if (read_flag(args, "O2")) {
} else if (read_flag(args, "verbose")) {
} else if (read_arg(ctx, args, arg, "plugin")) {
} else if (read_arg(ctx, args, arg, "plugin-opt")) {
} else if (read_flag(args, "color-diagnostics")) {

18
test/verbose.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
set -e
cd $(dirname $0)
echo -n "Testing $(basename -s .sh $0) ... "
t=$(pwd)/tmp/$(basename -s .sh $0)
mkdir -p $t
cat <<EOF | clang -c -xc -o $t/a.o -
#include <stdio.h>
int main() {
printf("Hello world\n");
}
EOF
clang -fuse-ld=`pwd`/../mold -Wl,--verbose -o $t/exe $t/a.o > /dev/null
echo OK