Skip to content

Commit 2d44142

Browse files
committed
Get Meson builds working
See #917
1 parent 4bbc16e commit 2d44142

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tool/cosmocc/bin/cosmocc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,18 @@ for x; do
141141
elif [ x"$x" != x"${x#-MF}" ]; then # startswith(x, "-MF")
142142
DEPENDENCY_OUTPUT=${x#-MF}
143143
continue
144+
elif [ x"$x" = x"-MQ" ]; then
145+
NEED_DEPENDENCY_OUTPUT=1
146+
continue
147+
elif [ x"$x" = x"-Wl,--version" ]; then
148+
cat <<EOF
149+
GNU ld (GNU Binutils) 2.42
150+
Copyright (C) 2024 Free Software Foundation, Inc.
151+
This program is free software; you may redistribute it under the terms of
152+
the GNU General Public License version 3 or (at your option) a later version.
153+
This program has absolutely no warranty.
154+
EOF
155+
exit
144156
elif [ x"$x" != x"${x#-O}" ]; then # startswith(x, "-O")
145157
OPT=$x
146158
elif [ x"$x" = x"-c" ]; then

0 commit comments

Comments
 (0)