Skip to content

Commit 5623fd2

Browse files
committed
wrappers: Remove the ld wrapping of --help and -v
The MinGW driver in lld now handle these flags, including the libtool specific keywords.
1 parent 0c7aac9 commit 5623fd2

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

wrappers/ld-wrapper.sh

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,6 @@
33
DIR="$(cd "$(dirname "$0")" && pwd)"
44
export PATH="$DIR":"$PATH"
55

6-
if [ "$1" = "--help" ]; then
7-
cat<<EOF
8-
GNU ld impersonation
9-
We don't support the --enable-auto-import flag (it's enabled by default just
10-
like it is in GNU ld), but we do support the feature itself. Libtool may
11-
look for this flag.
12-
EOF
13-
exit 0
14-
fi
15-
if [ "$1" = "-v" ]; then
16-
# This isn't implemented in the lld mingw frontend, so don't
17-
# pass the -m <machine> option in this case.
18-
ld.lld -v
19-
exit 0
20-
fi
21-
226
BASENAME="$(basename "$0")"
237
TARGET="${BASENAME%-*}"
248
DEFAULT_TARGET=x86_64-w64-mingw32

0 commit comments

Comments
 (0)