From 13e26764ea964f9e29e9013b23e72790de07e9ae Mon Sep 17 00:00:00 2001 From: dutor <440396+dutor@users.noreply.github.com> Date: Tue, 17 Mar 2020 10:27:49 +0800 Subject: [PATCH] Fix build-llvm --- scripts/build-llvm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-llvm b/scripts/build-llvm index d73d4a8..e951ffc 100755 --- a/scripts/build-llvm +++ b/scripts/build-llvm @@ -206,7 +206,7 @@ function configure_llvm { mkdir -p $build_dir cd $build_dir echo "Starting build LLVM-$llvm_version" - hash ccache && ccache_enable=ON || ccache_enable=OFF + hash ccache &>/dev/null && ccache_enable=ON || ccache_enable=OFF cmake $source_dir \ -DCMAKE_BUILD_TYPE=Release \ -DLLVM_TARGETS_TO_BUILD="X86" \