summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2018-05-28 12:09:40 -0400
committerMike Gilbert <floppym@gentoo.org>2018-05-28 12:23:49 -0400
commit520d19cdb16fd9beb580b212a471e4b492e1fee6 (patch)
tree47879c6570a0085e801fb46f511399e85b797790 /eclass/meson.eclass
parentapp-emulation/wine-any: Sync with ::wine (diff)
downloadgentoo-520d19cdb16fd9beb580b212a471e4b492e1fee6.tar.gz
gentoo-520d19cdb16fd9beb580b212a471e4b492e1fee6.tar.bz2
gentoo-520d19cdb16fd9beb580b212a471e4b492e1fee6.zip
Revert "meson.eclass: add _meson_move_flags function"
This reverts commit 0fe549260636840b96dfd3b9f55b5bbf7ea1d6a3. This function is unnecessary; we can use lists for the relevant toolchain binaries instead.
Diffstat (limited to 'eclass/meson.eclass')
-rw-r--r--eclass/meson.eclass31
1 files changed, 0 insertions, 31 deletions
diff --git a/eclass/meson.eclass b/eclass/meson.eclass
index d15e3ff58795..06e76092a6b9 100644
--- a/eclass/meson.eclass
+++ b/eclass/meson.eclass
@@ -198,25 +198,6 @@ meson_use() {
usex "$1" "-D${2-$1}=true" "-D${2-$1}=false"
}
-# @FUNCTION: _meson_move_flags
-# @INTERNAL
-# @USAGE: PROG FLAGS
-# @DESCRIPTION:
-# Moves extra arguments from PROG to FLAGS.
-# For example:
-# CC="gcc -m32" -> CC="gcc" CFLAGS="-m32"
-_meson_move_flags() {
- local prog=${1}
- local flags=${2}
- local x=( ${!prog} )
- if [[ -n ${x[0]} ]]; then
- export ${prog}=${x[0]}
- fi
- if [[ -n ${x[1]} ]]; then
- export ${flags}="${x[@]:1}${!flags:+ }${!flags}"
- fi
-}
-
# @FUNCTION: meson_src_configure
# @DESCRIPTION:
# This is the meson_src_configure function.
@@ -233,18 +214,6 @@ meson_src_configure() {
--wrap-mode nodownload
)
- # Prevent multilib flags from leaking across ABIs
- local -x BUILD_CFLAGS=${BUILD_CFLAGS}
- local -x BUILD_CXXFLAGS=${BUILD_CXXFLAGS}
-
- # Move multilib flags from CC to CFLAGS
- local -x CC=$(tc-getCC) CFLAGS=${CFLAGS}
- _meson_move_flags CC CFLAGS
-
- # Move multilib flags from CXX to CXXFLAGS
- local -x CXX=$(tc-getCXX) CXXFLAGS=${CXXFLAGS}
- _meson_move_flags CXX CXXFLAGS
-
if tc-is-cross-compiler; then
_meson_create_cross_file || die "unable to write meson cross file"
mesonargs+=( --cross-file "${T}/meson.${CHOST}" )