Added
Link Here
|
1 |
Add option to avoid running fc-cache on install (make stage). |
2 |
This can be committed upstream. |
3 |
|
4 |
--- meson_options.txt.orig 2020-12-03 11:45:00 UTC |
5 |
+++ meson_options.txt |
6 |
@@ -11,3 +11,5 @@ option('tests', type : 'feature', value |
7 |
description: 'Enable unit tests') |
8 |
option('tools', type : 'feature', value : 'auto', yield : true, |
9 |
description: 'Build command-line tools (fc-list, fc-query, etc.)') |
10 |
+option('fc-cache', type: 'feature', value : 'enabled', |
11 |
+ description : 'Run fc-cache on install') |
12 |
--- fc-cache/meson.build.orig 2021-01-28 11:53:32 UTC |
13 |
+++ fc-cache/meson.build |
14 |
@@ -8,6 +8,6 @@ fccache = executable('fc-cache', ['fc-ca |
15 |
tools_man_pages += ['fc-cache'] |
16 |
|
17 |
# Do not try to execute target's fc-cache on host when cross compiling |
18 |
-if not meson.is_cross_build() |
19 |
+if get_option('fc-cache').enabled() and not meson.is_cross_build() |
20 |
meson.add_install_script(fccache, '-s', '-f', '-v') |
21 |
endif |