dev-cpp/tbb: Fix building with clang
authorPeter Levine <plevine457@gmail.com>
Thu, 3 Oct 2019 01:43:17 +0000 (21:43 -0400)
committerGuilherme Amadio <amadio@gentoo.org>
Thu, 3 Oct 2019 09:31:43 +0000 (11:31 +0200)
Prevent "clang++" from being inadvertently matched to "*g++*" in a case
statement.

Closes: https://bugs.gentoo.org/662990
Closes: https://github.com/gentoo/gentoo/pull/13129
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Peter Levine <plevine457@gmail.com>
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
dev-cpp/tbb/tbb-2019.8.ebuild

index fd77782aba4ea4e90114beb69b08c5c5a7defa71..b017450117768948bf20cba221cec764736a367c 100644 (file)
@@ -80,9 +80,9 @@ local_src_compile() {
        esac
 
        case "$(tc-getCXX)" in
+               *clang*) comp="clang" ;;
                *g++*) comp="gcc" ;;
                *ic*c) comp="icc" ;;
-               *clang*) comp="clang" ;;
                *) die "compiler $(tc-getCXX) not supported by build system" ;;
        esac