am b771d956: Merge "Add flag to enable default clang builds--USE_CLANG_PLATFORM_BUILD."

* commit 'b771d95605a9076591d769edc36d6a544c3639be':
  Add flag to enable default clang builds--USE_CLANG_PLATFORM_BUILD.
This commit is contained in:
Tim Murray 2014-08-13 19:34:37 +00:00 committed by Android Git Automerger
commit 6830152675

View file

@ -151,6 +151,13 @@ ifdef LOCAL_IS_HOST_MODULE
endif
endif
# Add option to make clang the default for device build
ifeq ($(USE_CLANG_PLATFORM_BUILD),true)
ifeq ($(my_clang),)
my_clang := true
endif
endif
# arch-specific static libraries go first so that generic ones can depend on them
my_static_libraries := $(LOCAL_STATIC_LIBRARIES_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) $(LOCAL_STATIC_LIBRARIES_$(my_32_64_bit_suffix)) $(my_static_libraries)
my_whole_static_libraries := $(LOCAL_WHOLE_STATIC_LIBRARIES_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) $(LOCAL_WHOLE_STATIC_LIBRARIES_$(my_32_64_bit_suffix)) $(my_whole_static_libraries)