aboutsummaryrefslogtreecommitdiff
path: root/utils/fontconfig/patches/001-revert-upstream-meson-commit.patch
blob: bcd7ce8c8a85b54071da6418efe9a312a2f4fa25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Revert partially the upstream commit ae9ac2a1

  Subject: [PATCH] meson: fix cross-compilation issues with gperf header file preprocessing

  Pass c_args to the compiler when preprocessing the gperf header file,
  they might contain important bits without which compilation/preprocessing
  might fail (e.g. with clang on Android). cc.cmd_array() does not include
  the c_args and we can't easily look them up from the meson.build file, so
  we have to retrieve from the introspection info.

  This is basically the Meson equivalent to commit 57103773.

Revert the host_cargs related part of the patch


--- a/src/cutout.py
+++ b/src/cutout.py
@@ -24,7 +24,7 @@ if __name__== '__main__':
                 break
 
     cpp = args[1]
-    ret = subprocess.run(cpp + host_cargs + [args[0].input], stdout=subprocess.PIPE, check=True)
+    ret = subprocess.run(cpp + [args[0].input], stdout=subprocess.PIPE, check=True)
 
     stdout = ret.stdout.decode('utf8')