From 7bf0f597b8b0d7d209d856fa106b521ed65678af Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sun, 28 Apr 2019 22:01:40 +0200 Subject: autoconf build: add a PROJ_DB_CACHE_DIR trick to speed-up builds If the PROJ_DB_CACHE_DIR environment variable is defined, then a $(PROJ_DB_CACHED_DIR)/proj.db.sql.md5 file is used to determine if the set of .sql files has changed since the last time. If not then $(PROJ_DB_CACHED_DIR)/proj.db is directly used. This can saved a few seconds when doing rebuilds. This is a poor man equivalent of ccache for generating the database :-) --- travis/linux_gcc/install.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'travis/linux_gcc') diff --git a/travis/linux_gcc/install.sh b/travis/linux_gcc/install.sh index ad5caa9c..17f07c56 100755 --- a/travis/linux_gcc/install.sh +++ b/travis/linux_gcc/install.sh @@ -3,5 +3,6 @@ set -e export CCACHE_CPP2=yes +export PROJ_DB_CACHE_DIR="$HOME/.ccache" CC="ccache gcc" CXX="ccache g++" CFLAGS="-std=c89 -Werror" CXXFLAGS="-Werror" ./travis/install.sh -- cgit v1.2.3