Index: platform_tools/android/bin/android_setup.sh |
diff --git a/platform_tools/android/bin/android_setup.sh b/platform_tools/android/bin/android_setup.sh |
index d9799c21bdc04d739bfb4164eb9de2de91b27162..f3cc27cf4d3dc588600a307702ec63cbbec9fc75 100755 |
--- a/platform_tools/android/bin/android_setup.sh |
+++ b/platform_tools/android/bin/android_setup.sh |
@@ -12,6 +12,7 @@ |
set -e |
BUILDTYPE=${BUILDTYPE-Debug} |
+USE_CLANG="false" |
while (( "$#" )); do |
if [[ "$1" == "-d" ]]; then |
@@ -29,9 +30,11 @@ while (( "$#" )); do |
shift |
elif [[ "$1" == "--release" ]]; then |
BUILDTYPE=Release |
+ elif [[ "$1" == "--gcc" ]]; then |
+ USE_CLANG="false" |
elif [[ "$1" == "--clang" ]]; then |
- USE_CLANG="true" |
- export GYP_DEFINES="skia_clang_build=1 $GYP_DEFINES" |
+ #echo "NOTICE: --clang is deprecated now that clang is the default compiler" |
mtklein
2016/03/07 18:04:46
Line 15 says
USE_CLANG="false"
djsollen
2016/03/07 18:06:23
yeah which is why I commented this line out for no
|
+ USE_CLANG="true" |
elif [[ "$1" == "--logcat" ]]; then |
LOGCAT=1 |
elif [[ "$1" == "--verbose" ]]; then |
@@ -42,6 +45,10 @@ while (( "$#" )); do |
shift |
done |
+if [ "$USE_CLANG" == "true" ]; then |
+ export GYP_DEFINES="skia_clang_build=1 $GYP_DEFINES" |
+fi |
+ |
function verbose { |
if [[ -n $VERBOSE ]]; then |
echo $@ |