From 6ee7aaf611cabf50efb04c9ba986a09a847f573c Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Thu, 9 Jan 2014 18:18:50 +0900 Subject: [PATCH] Should not recognize `cc` as `clang` --- plugins/python-build/bin/python-build | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 1085545d..5e95b126 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -849,20 +849,20 @@ verify_gcc() { } require_clang() { - local cc="$(command -v "$CC" || command -v "clang" || command -v "cc" || true)" + local clang="$(command -v "$CC" || command -v "clang" || true)" - if [ -z "$cc" ]; then + if [ -z "$clang" ]; then local esc=$'\033' { echo - echo "${esc}[1mERROR${esc}[0m: This package must be compiled with cc, but python-build couldn't" - echo "find a suitable \`cc\` executable on your system. Please install cc" + echo "${esc}[1mERROR${esc}[0m: This package must be compiled with clang, but python-build couldn't" + echo "find a suitable \`clang\` executable on your system. Please install clang" echo "and try again." echo } >&3 return 1 fi - export CC="$cc" + export CC="$clang" } require_java() {