diff options
author | Sam James <sam@gentoo.org> | 2022-10-10 15:07:23 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-10-10 15:07:23 +0100 |
commit | 681d39425a71977ba0850eb88448f831f84dd6eb (patch) | |
tree | 475d6666e23ebb2ed1a31ed369f609996fbbb576 | |
parent | gcc-config: update /etc/clang/gentoo-gcc-install.cfg if exists (diff) | |
download | gcc-config-681d39425a71977ba0850eb88448f831f84dd6eb.tar.gz gcc-config-681d39425a71977ba0850eb88448f831f84dd6eb.tar.bz2 gcc-config-681d39425a71977ba0850eb88448f831f84dd6eb.zip |
Revert "gcc-config: set CCACHE_COMPILERCHECK to major GCC version"v2.8
This isn't going to work where the compiler used is Clang but GCC
is installed -- we'll end up always using a cache key of the
major GCC version, even for say, different Clang versions.
Fortunately, using %compiler% -dumpversion instead of %compiler% -v
locally will handle it fine as a workaround (to be set in ccache.conf) because
since b7a62d5e3f5e6e05c929f225ead22a2981c9f64 in gentoo.git, GCC installs
with just the major version in its paths, and -dumpversion reports said
major version, not the whole version (can use gcc -dumpfullversion if needed).
This reverts commit 3e49f724d090d65b739be1a67f6c40574337a2f7.
Bug: https://bugs.gentoo.org/872971
Signed-off-by: Sam James <sam@gentoo.org>
-rwxr-xr-x | gcc-config | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -747,14 +747,6 @@ switch_profile() { echo "LDPATH=\"${MY_LDPATH}\"" >> "${envd}.tmp" fi - # Avoid ccache cache invalidations where possible between - # snapshots and minor GCC versions, bug #872971. - # For GCC 10, we changed the slotting from e.g. 10.4 -> 10. - local gcc_major_version="${CC_COMP_VERSION%%.*}" - if [[ "${gcc_major_version}" -ge 10 ]] ; then - echo "CCACHE_COMPILERCHECK=\"string:gcc-${gcc_major_version}\"" >> "${envd}.tmp" - fi - # Punt old files; maybe globs too much, but oh well # 'NATIVE' and '.NATIVE' were used by gcc-wrapper before Aug 2018 # and are not used as wrapper is removed. |