Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: scripts/, eclass/
Date: Sun, 07 Feb 2021 17:50:52
Message-Id: 1612720210.f7c2abfe111975e6890adc77d916d274300be539.grobian@gentoo
1 commit: f7c2abfe111975e6890adc77d916d274300be539
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 7 17:50:10 2021 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 7 17:50:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=f7c2abfe
7
8 toolchain-funcs.eclass: handle arm64-macos in tc-tuple-is-softfloat
9
10 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
11
12 eclass/toolchain-funcs.eclass | 2 ++
13 scripts/bootstrap-prefix.sh | 10 +++++++---
14 2 files changed, 9 insertions(+), 3 deletions(-)
15
16 diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
17 index e8541f25b2..c2ac4a5d15 100644
18 --- a/eclass/toolchain-funcs.eclass
19 +++ b/eclass/toolchain-funcs.eclass
20 @@ -273,6 +273,8 @@ tc-tuple-is-softfloat() {
21 # bare-metal targets have their defaults. bug #666896
22 *-newlib|*-elf|*-eabi)
23 echo "no" ;;
24 + arm64-apple-darwin*)
25 + echo "no" ;;
26 arm*)
27 echo "yes" ;;
28 *)
29
30 diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
31 index 056aa72d78..bba4e97fe2 100755
32 --- a/scripts/bootstrap-prefix.sh
33 +++ b/scripts/bootstrap-prefix.sh
34 @@ -470,6 +470,10 @@ bootstrap_setup() {
35 sys-devel/native-cctools
36 EOF
37
38 + cat >> "${ROOT}"/etc/portage/package.accept_keywords <<-EOF
39 + sys-devel/gcc-11_pre20200206 **
40 + EOF
41 +
42 # Strange enough, -cxx causes wrong libtool config on Cygwin,
43 # but we require a C++ compiler there anyway - so just use it.
44 [[ ${CHOST} == *-cygwin* ]] ||
45 @@ -3070,9 +3074,9 @@ case ${CHOST} in
46 powerpc-*darwin*)
47 DARWIN_USE_GCC=1 # must use GCC, Clang is impossible
48 ;;
49 - arm64-*darwin*)
50 - DARWIN_USE_GCC=0 # cannot use GCC yet (needs silicon support)
51 - ;;
52 +# arm64-*darwin*)
53 +# DARWIN_USE_GCC=0 # cannot use GCC yet (needs silicon support)
54 +# ;;
55 *-darwin*)
56 # normalise value of DARWIN_USE_GCC
57 case ${DARWIN_USE_GCC} in