diff --git a/config/compiler/BUILD.gn b/config/compiler/BUILD.gn index 152448667..c6ea8839a 100644 --- a/config/compiler/BUILD.gn +++ b/config/compiler/BUILD.gn @@ -842,11 +842,6 @@ config("default_warnings") { cflags += [ "/WX" ] } - cflags += [ - # Assume UTF-8 by default to avoid code page dependencies. - "/utf-8", - ] - cflags += [ # Warnings permanently disabled: @@ -1078,6 +1073,9 @@ 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) {