Skip to content

Commit

Permalink
Enable ccache for build
Browse files Browse the repository at this point in the history
  • Loading branch information
bullno1 committed Feb 19, 2017
1 parent b0ff1e0 commit f0b2306
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
language: generic
cache: ccache
addons:
apt:
sources:
Expand All @@ -24,7 +25,7 @@ env:
install:
- pip install --user cpp-coveralls
script:
- ./numake tests WITH_LTO=0 WITH_UBSAN=1 WITH_ASAN=1
- ./with-ccache ./numake tests WITH_LTO=0 WITH_UBSAN=1 WITH_ASAN=1
after_success:
- if [ "$COMPILER" = "gcc" ]; then coveralls --root . --build-root . --exclude .build/*/src/tests --exclude .build/*/src/lip/vendor --exclude .build/*/src/lip/khash_impl.c ; fi
sudo: required
Expand Down
5 changes: 5 additions & 0 deletions with-ccache
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh -e

export CC="ccache ${CC:-cc}"
export CXX="ccache ${CXX:-c++}"
exec $*

0 comments on commit f0b2306

Please sign in to comment.