From 8c52c1aac1f116b11e7599c12c3db4edcbc0ddeb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 27 Apr 2017 00:08:24 +0300 Subject: Add ccache into most build scripts. --- build/bmake | 5 +++-- build/bmakedebug | 6 +++--- build/bmakedebugsdl2 | 6 +++--- build/bmakespeed | 6 +++--- 4 files changed, 12 insertions(+), 11 deletions(-) (limited to 'build') diff --git a/build/bmake b/build/bmake index 292c8c7bf..83ab1c35a 100755 --- a/build/bmake +++ b/build/bmake @@ -5,8 +5,9 @@ cd .. dir=`pwd` -export CC=gcc -export CXX=g++ +export CCACHE_DIR="${dir}/build/ccache/bmake" +export CC="ccache gcc" +export CXX="ccache g++" export LANG=C diff --git a/build/bmakedebug b/build/bmakedebug index 003a6293f..0ee9af5b2 100755 --- a/build/bmakedebug +++ b/build/bmakedebug @@ -5,9 +5,9 @@ mkdir tmp cd .. dir=`pwd` -export CC=gcc -export CXX=g++ - +export CCACHE_DIR="${dir}/build/ccache/bmakedebug" +export CC="ccache gcc" +export CXX="ccache g++" export LANG=C export CXXFLAGS="-pedantic -ggdb3 -O3 -pipe -ffast-math \ diff --git a/build/bmakedebugsdl2 b/build/bmakedebugsdl2 index d3bd476be..5c278c6ab 100755 --- a/build/bmakedebugsdl2 +++ b/build/bmakedebugsdl2 @@ -5,9 +5,9 @@ mkdir tmp cd .. dir=`pwd` -export CC=gcc -export CXX=g++ - +export CCACHE_DIR="${dir}/build/ccache/bmakedebugsdl2" +export CC="ccache gcc" +export CXX="ccache g++" export LANG=C export CXXFLAGS="-pedantic -ggdb3 -O3 -pipe -ffast-math \ diff --git a/build/bmakespeed b/build/bmakespeed index f6b15027a..ba9924a86 100755 --- a/build/bmakespeed +++ b/build/bmakespeed @@ -5,9 +5,9 @@ cd .. dir=`pwd` -export CC=gcc -export CXX=g++ - +export CCACHE_DIR="${dir}/build/ccache/bmakespeed" +export CC="ccache gcc" +export CXX="ccache g++" export LANG=C export CXXFLAGS="-pedantic -ggdb3 -O5 -pipe -ffast-math \ -- cgit v1.2.3-70-g09d2