We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51336f3 commit 45bdf76Copy full SHA for 45bdf76
config/compiler/BUILD.gn
@@ -333,9 +333,9 @@ config("compiler") {
333
# When UBSan is enabled, we want to continue flagging overflows as a bug.
334
if (!is_ubsan && (!is_win || is_clang)) {
335
if (is_win) {
336
- cflags += [ "/clang:-fno-strict-overflow" ]
+ cflags += [ "/clang:-fwrapv" ]
337
} else {
338
- cflags += [ "-fno-strict-overflow" ]
+ cflags += [ "-fwrapv" ]
339
}
340
341
0 commit comments