From 5d6509e008f29b3873dbc9b4c5300dff0145bfb0 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Wed, 10 May 2017 13:44:23 -0700 Subject: [PATCH] scripts/detect_cc.sh: fix indentation Use tabs consistently. Change-Id: I4d50f553047105f0e0b4859a20e93d275494aff0 Signed-off-by: Daniel Verkamp --- scripts/detect_cc.sh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/scripts/detect_cc.sh b/scripts/detect_cc.sh index 21ccf8214..6bcd04aaf 100755 --- a/scripts/detect_cc.sh +++ b/scripts/detect_cc.sh @@ -4,7 +4,7 @@ set -e function err() { - echo "$@" >&2 + echo "$@" >&2 } function usage() @@ -19,7 +19,7 @@ function usage() err " -h, --help Display this help and exit" err " --cc=path C compiler to use" err " --cxx=path C++ compiler to use" - err " --lto=[y|n] Attempt to configure for LTO" + err " --lto=[y|n] Attempt to configure for LTO" } @@ -57,22 +57,22 @@ CXX_TYPE=$($CXX -v 2>&1 | grep version | awk '{print $1}') LD_TYPE=$(ld -v 2>&1 | awk '{print $2}') if [ "$CC_TYPE" != "$CXX_TYPE" ]; then - err "C compiler is $CC_TYPE but C++ compiler is $CXX_TYPE" - err "This may result in errors" - exit 1 + err "C compiler is $CC_TYPE but C++ compiler is $CXX_TYPE" + err "This may result in errors" + exit 1 fi CCAR="ar" if [ "$LTO" = "y" ]; then - if [ "$CC_TYPE" = "clang" ]; then - if [ "$LD_TYPE" != "gold" ]; then - err "Using LTO with clang requires the gold linker." - exit 1 - fi - CCAR="llvm-ar" - else - CCAR="gcc-ar" - fi + if [ "$CC_TYPE" = "clang" ]; then + if [ "$LD_TYPE" != "gold" ]; then + err "Using LTO with clang requires the gold linker." + exit 1 + fi + CCAR="llvm-ar" + else + CCAR="gcc-ar" + fi fi echo "CC=$CC"