Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit aa8ba07

Browse files
authored
added no-rtti config (#335)
1 parent 2c769aa commit aa8ba07

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build/config/BUILD.gn

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,12 @@ config("symbol_visibility_hidden") {
188188
# Empty but present because this is also present in other buildroots.
189189
# The same config from gcc/BUILD.gn is used instead.
190190
}
191+
192+
config("no_rtti") {
193+
if (is_win) {
194+
cflags_cc = [ "/GR-" ]
195+
} else {
196+
cflags_cc = [ "-fno-rtti" ]
197+
cflags_objcc = cflags_cc
198+
}
199+
}

0 commit comments

Comments
 (0)