From 8a98d5b0f92a61ec750f9907c574ade68d5e7edf Mon Sep 17 00:00:00 2001 From: Eloston Date: Fri, 14 Sep 2018 17:46:39 +0000 Subject: [PATCH] windows: Add windows-fix-building-gn.patch Thanks @shiromichi for the patch. See #475 --- config_bundles/windows/patch_order.list | 1 + .../windows/windows-fix-building-gn.patch | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 patches/ungoogled-chromium/windows/windows-fix-building-gn.patch diff --git a/config_bundles/windows/patch_order.list b/config_bundles/windows/patch_order.list index 57b1857a..003d9a06 100644 --- a/config_bundles/windows/patch_order.list +++ b/config_bundles/windows/patch_order.list @@ -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 diff --git a/patches/ungoogled-chromium/windows/windows-fix-building-gn.patch b/patches/ungoogled-chromium/windows/windows-fix-building-gn.patch new file mode 100644 index 00000000..ac87de70 --- /dev/null +++ b/patches/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}