diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-03-13 09:35:12 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-13 19:53:01 +0000 |
commit | 77e2a6c4589dcedb61789beefb1605ba2c0f1aff (patch) | |
tree | 2689eab40bd19c958155ff6b1d2eac45da3afbec /BUILD.gn | |
parent | 375c2764b56b38cc9326a8f8ef668fbf78234e9a (diff) | |
download | pdfium-77e2a6c4589dcedb61789beefb1605ba2c0f1aff.tar.xz |
Add utf-8 flag to win build.
Tell VC++ that the pdfium source files are encoded in UTF-8 so that
it doesn't interpret them as being encoded in the local code page.
Change-Id: Ide74061cad523a873ffa5630781dfc47bf7ae79c
Reviewed-on: https://pdfium-review.googlesource.com/2961
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -59,6 +59,11 @@ config("pdfium_common_config") { ] ldflags += [ "--coverage" ] } + + if (is_win) { + # Assume UTF-8 by default to avoid code page dependencies. + cflags += [ "/utf-8" ] + } } config("pdfium_core_config") { |