windows: Add windows-fix-building-gn.patch

Thanks @shiromichi for the patch. See #475
This commit is contained in:
Eloston
2018-09-14 17:46:39 +00:00
parent ff7d8e4b11
commit 8a98d5b0f9
2 changed files with 21 additions and 0 deletions
+1
View File
@@ -5,3 +5,4 @@ ungoogled-chromium/windows/windows-disable-orderfile.patch
ungoogled-chromium/windows/windows-disable-rcpy.patch
ungoogled-chromium/windows/windows-fix-building-without-safebrowsing.patch
ungoogled-chromium/windows/windows-fix-enum-conflict.patch
ungoogled-chromium/windows/windows-fix-building-gn.patch
@@ -0,0 +1,20 @@
# Fix building GN on Windows
# Author: shiromichi on GitHub
--- a/tools/gn/build/build_win.ninja.template
+++ b/tools/gn/build/build_win.ninja.template
@@ -1,12 +1,12 @@
rule cc
- command = ninja -t msvc -- $cc /nologo /showIncludes /FC @${out}.rsp /c ${in} /Fo${out}
+ command = ninja -t msvc -- $cc /utf-8 /nologo /showIncludes /FC @${out}.rsp /c ${in} /Fo${out}
description = CC ${out}
rspfile = ${out}.rsp
rspfile_content = ${defines} ${includes} ${cflags} ${cflags_c}
deps = msvc
rule cxx
- command = ninja -t msvc -- $cxx /nologo /showIncludes /FC @${out}.rsp /c ${in} /Fo${out}
+ command = ninja -t msvc -- $cxx /utf-8 /nologo /showIncludes /FC @${out}.rsp /c ${in} /Fo${out}
description = CXX ${out}
rspfile = ${out}.rsp
rspfile_content = ${defines} ${includes} ${cflags} ${cflags_cc}