sys-devel/llvm: Use tc-is-gcc from toolchain-funcs
authorMichał Górny <mgorny@gentoo.org>
Sun, 3 Jul 2016 07:29:46 +0000 (09:29 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sun, 3 Jul 2016 08:19:07 +0000 (10:19 +0200)
sys-devel/llvm/llvm-3.8.0-r3.ebuild

index 0b38f2e58fac9cf0c5fd998b2fe9b20ec245baae..31be20b9c065993472907f3635f8efacb353f3e3 100644 (file)
@@ -173,7 +173,7 @@ src_prepare() {
        sed -i -e 's/xcrun/false/' utils/lit/lit/util.py || die
 
        # Workaround, can be compiled with gcc on Gentoo/FreeBSD, bug #578064
-       use kernel_FreeBSD && [[ $(tc-getCC) == *gcc* ]] && append-cppflags "-D_GLIBCXX_USE_C99"
+       use kernel_FreeBSD && tc-is-gcc && append-cppflags "-D_GLIBCXX_USE_C99"
 
        if use clang; then
                # Automatically select active system GCC's libraries, bugs #406163 and #417913