1 |
It's already masked and disabled in GCC and it causes a huge |
2 |
number of problems, but we need t odo this to avoid automagically |
3 |
trying to use PCH-even-once-it's-been-disabled-in-the-compiler. |
4 |
|
5 |
Bug: https://bugs.gentoo.org/839549 |
6 |
Signed-off-by: Sam James <sam@g.o> |
7 |
--- |
8 |
eclass/meson.eclass | 8 +++++++- |
9 |
1 file changed, 7 insertions(+), 1 deletion(-) |
10 |
|
11 |
diff --git a/eclass/meson.eclass b/eclass/meson.eclass |
12 |
index c094f4683913..809cf10f8366 100644 |
13 |
--- a/eclass/meson.eclass |
14 |
+++ b/eclass/meson.eclass |
15 |
@@ -1,4 +1,4 @@ |
16 |
-# Copyright 2017-2021 Gentoo Authors |
17 |
+# Copyright 2017-2022 Gentoo Authors |
18 |
# Distributed under the terms of the GNU General Public License v2 |
19 |
|
20 |
# @ECLASS: meson.eclass |
21 |
@@ -323,6 +323,12 @@ meson_src_configure() { |
22 |
--build.pkg-config-path "${BUILD_PKG_CONFIG_PATH}${BUILD_PKG_CONFIG_PATH:+:}${EPREFIX}/usr/share/pkgconfig" |
23 |
--pkg-config-path "${PKG_CONFIG_PATH}${PKG_CONFIG_PATH:+:}${EPREFIX}/usr/share/pkgconfig" |
24 |
--native-file "$(_meson_create_native_file)" |
25 |
+ |
26 |
+ # gcc[pch] is masked in profiles due to consistent bugginess |
27 |
+ # without forcing this off, some packages may fail too (like gjs, |
28 |
+ # bug #839549), but in any case, we don't want to bother attempting |
29 |
+ # this. |
30 |
+ -Db_pch=false |
31 |
) |
32 |
|
33 |
if [[ -n ${EMESON_BUILDTYPE} ]]; then |
34 |
-- |
35 |
2.35.1 |