From 20116584012f21260b557781553e83f9a642ed89 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 8 Mar 2020 23:05:16 +0200 Subject: [PATCH] ccache: Clang support --- extra/ccache/build | 6 +++--- extra/ccache/version | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extra/ccache/build b/extra/ccache/build index 1b063cc2..1c3f5fb6 100755 --- a/extra/ccache/build +++ b/extra/ccache/build @@ -13,9 +13,9 @@ install -Dm 644 doc/ccache.1 "$1/usr/share/man/man1/ccache.1" mkdir -p "$1/usr/lib/ccache/bin" -triplet=$(cc -dumpmachine) +host=$(cc -dumpmachine) -for link in cc gcc g++ cpp c++ "$triplet-cc" "$triplet-gcc" \ - "$triplet-g++" "$triplet-cpp" "$triplet-c++"; do +for link in cc gcc g++ cpp c++ clang clang++ \ + "$host-cc" "$host-gcc" "$host-g++" "$host-cpp" "$host-c++"; do ln -sf /usr/bin/ccache "$1/usr/lib/ccache/bin/$link" done diff --git a/extra/ccache/version b/extra/ccache/version index 092b275e..dccce0d2 100644 --- a/extra/ccache/version +++ b/extra/ccache/version @@ -1 +1 @@ -3.7.7 1 +3.7.7 2