summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-10-02 23:32:01 +0200
committerMichał Górny <mgorny@gentoo.org>2016-10-02 23:51:49 +0200
commit00f67b1579de819d36bd728a1af6e1fa4fca9f4c (patch)
treeff5fe20f9003f723998e46875f9e19039d8ffdd7 /sys-devel
parentsys-devel/clang: Wrap the new clang-cpp symlink, #478810 (diff)
downloadgentoo-00f67b1579de819d36bd728a1af6e1fa4fca9f4c.tar.gz
gentoo-00f67b1579de819d36bd728a1af6e1fa4fca9f4c.tar.bz2
gentoo-00f67b1579de819d36bd728a1af6e1fa4fca9f4c.zip
sys-devel/llvm: Backport clang-cpp symlink, #478810
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/llvm/llvm-3.9.0.ebuild10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys-devel/llvm/llvm-3.9.0.ebuild b/sys-devel/llvm/llvm-3.9.0.ebuild
index 4514dd0c239a..3f694d16fc60 100644
--- a/sys-devel/llvm/llvm-3.9.0.ebuild
+++ b/sys-devel/llvm/llvm-3.9.0.ebuild
@@ -436,20 +436,20 @@ src_install() {
if use clang; then
# Apply CHOST and version suffix to clang tools
local clang_version=${PV%.*}
- local clang_tools=( clang clang++ clang-cl )
+ local clang_tools=( clang clang++ clang-cl clang-cpp )
local abi i
# cmake gives us:
# - clang-X.Y
# - clang -> clang-X.Y
- # - clang++, clang-cl -> clang
+ # - clang++, clang-cl, clang-cpp -> clang
# we want to have:
# - clang-X.Y
- # - clang++-X.Y, clang-cl-X.Y -> clang-X.Y
- # - clang, clang++, clang-cl -> clang*-X.Y
+ # - clang++-X.Y, clang-cl-X.Y, clang-cpp-X.Y -> clang-X.Y
+ # - clang, clang++, clang-cl, clang-cpp -> clang*-X.Y
# also in CHOST variant
for i in "${clang_tools[@]:1}"; do
- rm "${ED%/}/usr/bin/${i}" || die
+ rm -f "${ED%/}/usr/bin/${i}" || die
dosym "clang-${clang_version}" "/usr/bin/${i}-${clang_version}"
dosym "${i}-${clang_version}" "/usr/bin/${i}"
done