From 52f7afeca991d96d68cf0507e20dbdd5b845691f Mon Sep 17 00:00:00 2001 From: scottmg Date: Mon, 12 Dec 2016 19:34:05 -0800 Subject: [PATCH] win: /utf-8 for all code Previously enabled for chromium_code, can now be turned on everywhere. BUG=454858,637203, 671021 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/a53f3c3734ad9ee4322f6a9a60eede7f6b04530f Cr-Commit-Position: refs/heads/master@{#436189} Review-Url: https://codereview.chromium.org/2543743002 Cr-Original-Commit-Position: refs/heads/master@{#438029} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 663994ebf90ac57f5cc56a9639a16e29aee1ff2b --- config/compiler/BUILD.gn | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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) {