mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
windows: Add windows-fix-building-gn.patch
Thanks @shiromichi for the patch. See #475
This commit is contained in:
@@ -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}
|
||||
Reference in New Issue
Block a user