aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/BUILD.gn
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2017-01-03 17:09:59 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-01-03 22:45:03 +0000
commite6b274e402094a67a9febc51c5de5d3f22ee8be4 (patch)
tree032bdb34fe37393f8dfd2b59f2e7e7c25cbbfff6 /gn/BUILD.gn
parent2f4686fa25ef7a14961f68be18e63de3567d0a15 (diff)
Specify "/utf-8" with Visual C++.
This sets the source and executable character set to utf-8. This avoids issues with local code pages and avoids adding an unwanted BOM. Change-Id: If854c0001c2363f3262d20e28dce30c1e733536a Reviewed-on: https://skia-review.googlesource.com/6547 Commit-Queue: Ben Wagner <bungeman@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'gn/BUILD.gn')
-rw-r--r--gn/BUILD.gn1
1 files changed, 1 insertions, 0 deletions
diff --git a/gn/BUILD.gn b/gn/BUILD.gn
index ef01130b67..3b50286d21 100644
--- a/gn/BUILD.gn
+++ b/gn/BUILD.gn
@@ -67,6 +67,7 @@ config("default") {
"/FS", # Preserve previous PDB behavior.
"/bigobj", # Some of our files are bigger than the regular limits.
"/WX", # Treat warnings as errors.
+ "/utf-8", # Set Source and Executable character sets to UTF-8.
]
defines += [
"_CRT_SECURE_NO_WARNINGS", # Disables warnings about sscanf().