Browse Source

ccache-clang: use CCACHE_CPP2

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
master
Steven Noonan 7 years ago
parent
commit
0e7de92342
No known key found for this signature in database GPG Key ID: 7EACB44BA7B30DB9
  1. 13
      ccache-clang/PKGBUILD
  2. 3
      ccache-clang/ccache-clang-script

13
ccache-clang/PKGBUILD

@ -1,20 +1,17 @@
# Contributor: Steven Noonan <snoonan@amazon.com>
pkgname=ccache-clang
pkgver=2
pkgver=3
pkgrel=1
pkgdesc="Adds wrappers for clang for ccache compilation"
license=(GPL)
arch=(i686 x86_64)
makedepends=()
arch=('any')
depends=('ccache' 'clang')
source=('ccache-clang-script')
md5sums=('40970f1aa42e938fa225e1816f377e08')
md5sums=('742a8bec7716942a31d170297c0808f7')
build() {
package() {
LIBDIR=${pkgdir}/usr/lib
if [ "$CARCH" == "x86_64" ]; then
LIBDIR=${LIBDIR}64
fi
install -dm0755 ${LIBDIR}/ccache
install -dm0755 ${LIBDIR}/ccache/bin
install -m0755 ccache-clang-script ${LIBDIR}/ccache/ccache-clang-script

3
ccache-clang/ccache-clang-script

@ -3,4 +3,5 @@
me="$(basename $0)"
dir="$(dirname $0)"
export PATH=$(echo ${PATH} | tr ':' '\n' | grep -v "$dir" | tr '\n' ':')
exec /usr/bin/ccache ${me} -Qunused-arguments -fcolor-diagnostics "$@"
export CCACHE_CPP2=1
exec /usr/bin/ccache ${me} -fcolor-diagnostics "$@"
Loading…
Cancel
Save