Skip to content

Commit b580080

Browse files
authored
tool/cosmocc: Allow exceptions and rtti (#1074)
With `libunwind` and `libcxxabi` included in `libcosmo`, we can now allow users to build C++ applications with exceptions and RTTI enabled. The default is still disabling these two to avoid bloating the binary. Closes #1065
1 parent 8b33204 commit b580080

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

tool/cosmocc/bin/cosmocc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,9 @@ for x; do
151151
elif [ x"$x" = x"-r" ] ||
152152
[ x"$x" = x"-S" ] ||
153153
[ x"$x" = x"-pie" ] ||
154-
[ x"$x" = x"-frtti" ] ||
155154
[ x"$x" = x"-shared" ] ||
156155
[ x"$x" = x"-nostdlib" ] ||
157156
[ x"$x" = x"-mred-zone" ] ||
158-
[ x"$x" = x"-fexceptions" ] ||
159157
[ x"$x" = x"-fsanitize=thread" ]; then
160158
fatal_error "$x flag not supported"
161159
elif [ x"$x" = x"-mno-red-zone" ]; then

tool/cosmocc/bin/cosmocross

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,9 @@ for x; do
142142
continue
143143
elif [ x"$x" = x"-r" ] ||
144144
[ x"$x" = x"-pie" ] ||
145-
[ x"$x" = x"-frtti" ] ||
146145
[ x"$x" = x"-shared" ] ||
147146
[ x"$x" = x"-nostdlib" ] ||
148147
[ x"$x" = x"-mred-zone" ] ||
149-
[ x"$x" = x"-fexceptions" ] ||
150148
[ x"$x" = x"-fsanitize=thread" ]; then
151149
echo "$PROG: $x not supported" >&2
152150
exit 1

0 commit comments

Comments
 (0)