diff options
-rw-r--r-- | build/Android.common_build.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/build/Android.common_build.mk b/build/Android.common_build.mk index 169a651..d812678 100644 --- a/build/Android.common_build.mk +++ b/build/Android.common_build.mk @@ -72,7 +72,13 @@ ART_TARGET_CFLAGS := # Host. ART_HOST_CLANG := false -ifneq ($(WITHOUT_HOST_CLANG),true) + +ifeq ($(HOST_OS),darwin) + # Local darwin gcc is ancient + WITHOUT_HOST_CLANG ?= false +endif + +ifeq ($(WITHOUT_HOST_CLANG),false) # By default, host builds use clang for better warnings. ART_HOST_CLANG := true endif |