diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-04-28 22:01:40 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-04-28 22:09:03 +0200 |
| commit | 7bf0f597b8b0d7d209d856fa106b521ed65678af (patch) | |
| tree | 357adfd638ccaa153bfc4f8ba378740c8d270696 /travis/linux_gcc | |
| parent | 0fc0c6d8d535fcbf8b7c72d5a6c22c9daa780d49 (diff) | |
| download | PROJ-7bf0f597b8b0d7d209d856fa106b521ed65678af.tar.gz PROJ-7bf0f597b8b0d7d209d856fa106b521ed65678af.zip | |
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 :-)
Diffstat (limited to 'travis/linux_gcc')
| -rwxr-xr-x | travis/linux_gcc/install.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
