Index: webrtc/BUILD.gn |
diff --git a/webrtc/BUILD.gn b/webrtc/BUILD.gn |
index 4216bd3de42197efef9020c4be6e409aa1cc2f08..210d2086df6def2ba24ce5928dad3f3990e19e61 100644 |
--- a/webrtc/BUILD.gn |
+++ b/webrtc/BUILD.gn |
@@ -93,6 +93,10 @@ config("common_inherited_config") { |
ldflags += [ "-fsanitize-coverage=${rtc_sanitize_coverage}" ] |
} |
+ if (is_ubsan) { |
+ cflags += [ "-fsanitize=float-cast-overflow" ] |
+ } |
+ |
# TODO(GYP): Support these in GN. |
# if (is_bsd) { |
# defines += [ "BSD" ] |