summaryrefslogtreecommitdiff
path: root/data/llvm-clang
diff options
context:
space:
mode:
Diffstat (limited to 'data/llvm-clang')
-rwxr-xr-xdata/llvm-clang/_metadata/postinst2
-rwxr-xr-xdata/llvm-clang/_metadata/prerm2
-rw-r--r--data/llvm-clang/_metadata/provides2
3 files changed, 5 insertions, 1 deletions
diff --git a/data/llvm-clang/_metadata/postinst b/data/llvm-clang/_metadata/postinst
index bebc210cd..c2ae4f7a9 100755
--- a/data/llvm-clang/_metadata/postinst
+++ b/data/llvm-clang/_metadata/postinst
@@ -6,8 +6,10 @@ case "$1" in
for prog in ${LLVMPROGS}; do
update-alternatives --quiet --install /usr/bin/${prog} ${prog} /usr/bin/llvm-${prog} 50
done
+ update-alternatives --quiet --install /usr/bin/cc cc /usr/bin/clang 50
update-alternatives --quiet --install /usr/bin/gcc gcc /usr/bin/clang 50
update-alternatives --quiet --install /usr/bin/cpp cpp /usr/bin/clang-cpp 50
+ update-alternatives --quiet --install /usr/bin/c++ c++ /usr/bin/clang++ 50
update-alternatives --quiet --install /usr/bin/g++ g++ /usr/bin/clang++ 50
;;
diff --git a/data/llvm-clang/_metadata/prerm b/data/llvm-clang/_metadata/prerm
index 119c2de8f..b3783cb23 100755
--- a/data/llvm-clang/_metadata/prerm
+++ b/data/llvm-clang/_metadata/prerm
@@ -5,8 +5,10 @@ case "$1" in
for prog in ${LLVMPROGS}; do
update-alternatives --quiet --remove ${prog} /usr/bin/llvm-${prog}
done
+ update-alternatives --quiet --remove cc /usr/bin/clang
update-alternatives --quiet --remove gcc /usr/bin/clang
update-alternatives --quiet --remove cpp /usr/bin/clang-cpp
+ update-alternatives --quiet --remove c++ /usr/bin/clang++
update-alternatives --quiet --remove g++ /usr/bin/clang++
;;
upgrade)
diff --git a/data/llvm-clang/_metadata/provides b/data/llvm-clang/_metadata/provides
index 08f4c1128..52db077d7 100644
--- a/data/llvm-clang/_metadata/provides
+++ b/data/llvm-clang/_metadata/provides
@@ -1 +1 @@
-org.coolstar.llvm-clang64, org.coolstar.llvm-clang
+org.coolstar.llvm-clang64, org.coolstar.llvm-clang, cc, gcc