Added check for ccache if ccache option is used.
authorTomasz Olszak <t.olszak@samsung.com>
Wed, 20 Aug 2014 02:01:48 +0000 (11:01 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
It will provide more developer friendly output in case ccache is not installed.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=4975

Change-Id: Ic128135191244c5633607f7c09e4a58cf428b15d
Signed-off-by: Tomasz Olszak <t.olszak@samsung.com>
tizen_src/build/ccache_env.sh

index afad5d5..196bdf8 100644 (file)
@@ -8,6 +8,10 @@ function usage() {
   echo "source build/ccache_env.sh desktop|mobile|tv"
 }
 
+if ! type ccache &> /dev/null; then
+  echo "WARNING: ccache option used but ccache is not installed"
+  return 0
+fi
 
 if [ "$1" == "desktop" -o  "$1" == "mobile" -o "$1" == "tv" ]; then
   OUTPUT_BASE_FOLDER=out.${1}.$(getHostArch)