Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 2f107f7d3bc3d83d578a93a1d9cd4a53c1292eb2..ea5401a39facfaa3bb45edcdaafd57d01cdc9b07 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -1098,7 +1098,7 @@ config("rtti") { |
} |
config("no_rtti") { |
# CFI diagnostics and UBsan vptr require RTTI. |
- if (!use_cfi_diag && !is_ubsan_vptr) { |
+ if (!use_cfi_diag && !is_ubsan_vptr && !is_ubsan_security) { |
if (is_win) { |
cflags_cc = [ "/GR-" ] |
} else { |