summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-04-19 19:05:00 +0100
committerSam James <sam@gentoo.org>2022-04-25 16:57:55 +0100
commite81acd54090a08c68264ad99ff36d8f2a1c50b6a (patch)
tree813194ed5b99018bf54d263811e645892d904e8d /eclass/meson.eclass
parentdev-python/pystache: fix RedundantLongDescription (diff)
downloadgentoo-e81acd54090a08c68264ad99ff36d8f2a1c50b6a.tar.gz
gentoo-e81acd54090a08c68264ad99ff36d8f2a1c50b6a.tar.bz2
gentoo-e81acd54090a08c68264ad99ff36d8f2a1c50b6a.zip
meson.eclass: disable PCH
It's already masked and disabled in GCC and it causes a huge number of problems, but we need to do this to avoid automagically trying to use PCH-even-once-it's-been-disabled-in-the-compiler. Bug: https://bugs.gentoo.org/839549 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/meson.eclass')
-rw-r--r--eclass/meson.eclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/meson.eclass b/eclass/meson.eclass
index c094f4683913..809cf10f8366 100644
--- a/eclass/meson.eclass
+++ b/eclass/meson.eclass
@@ -1,4 +1,4 @@
-# Copyright 2017-2021 Gentoo Authors
+# Copyright 2017-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: meson.eclass
@@ -323,6 +323,12 @@ meson_src_configure() {
--build.pkg-config-path "${BUILD_PKG_CONFIG_PATH}${BUILD_PKG_CONFIG_PATH:+:}${EPREFIX}/usr/share/pkgconfig"
--pkg-config-path "${PKG_CONFIG_PATH}${PKG_CONFIG_PATH:+:}${EPREFIX}/usr/share/pkgconfig"
--native-file "$(_meson_create_native_file)"
+
+ # gcc[pch] is masked in profiles due to consistent bugginess
+ # without forcing this off, some packages may fail too (like gjs,
+ # bug #839549), but in any case, we don't want to bother attempting
+ # this.
+ -Db_pch=false
)
if [[ -n ${EMESON_BUILDTYPE} ]]; then