projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1728fd
)
toolchain.eclass: set SLOT=${GCCMAJOR} for gcc-10*
author
Sergei Trofimovich
<slyfox@gentoo.org>
Sun, 27 Oct 2019 20:15:41 +0000
(20:15 +0000)
committer
Sergei Trofimovich
<slyfox@gentoo.org>
Sun, 27 Oct 2019 20:16:48 +0000
(20:16 +0000)
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain.eclass
patch
|
blob
|
history
diff --git
a/eclass/toolchain.eclass
b/eclass/toolchain.eclass
index 7e88900737ac84176cd875befe9ac9114c0af348..d2bfa6ab2f1d713f9bd897eacda9188344a493f6 100644
(file)
--- a/
eclass/toolchain.eclass
+++ b/
eclass/toolchain.eclass
@@
-186,7
+186,13
@@
if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
tc_version_is_at_least 9.1 && IUSE+=" lto"
fi
-SLOT="${GCC_CONFIG_VER}"
+if tc_version_is_at_least 10; then
+ # Note: currently we pull in prereleases, snapshots and
+ # git versions into the same SLOT.
+ SLOT="${GCCMAJOR}"
+else
+ SLOT="${GCC_CONFIG_VER}"
+fi
#---->> DEPEND <<----