diff --git a/config/compiler/BUILD.gn b/config/compiler/BUILD.gn index fae310aa8..f3a69627b 100644 --- a/config/compiler/BUILD.gn +++ b/config/compiler/BUILD.gn @@ -839,6 +839,11 @@ config("default_warnings") { cflags += [ "/WX" ] } + cflags += [ + # Assume UTF-8 by default to avoid code page dependencies. + "/utf-8", + ] + cflags += [ # Warnings permanently disabled: @@ -1070,9 +1075,6 @@ config("default_warnings") { config("chromium_code") { if (is_win) { cflags = [ "/W4" ] # Warning level 4. - - # Assume UTF-8 by default to avoid code page dependencies. - cflags += [ "/utf-8" ] } else { cflags = [ "-Wall" ] if (treat_warnings_as_errors) {