mirror of
https://github.com/rui314/mold.git
synced 2024-11-11 05:46:58 +03:00
Ignore --verbose
This commit is contained in:
parent
f8359fdafd
commit
22ca6bc288
@ -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
18
test/verbose.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user