Merge "Forbid Clang for Windows" am: e4d5e08

am: 1eb2442

* commit '1eb24425d04d64d1811bc34c6395179fa3cfd526':
  Forbid Clang for Windows

Change-Id: I51432b0f6782422dd424edbbecab9a5b936be8f2
This commit is contained in:
Dan Willemsen 2016-03-29 21:02:56 +00:00 committed by android-build-merger
commit a586820428
1 changed files with 9 additions and 4 deletions

View File

@ -214,10 +214,15 @@ endif
# clang is enabled by default for host builds
# enable it unless we've specifically disabled clang above
ifdef LOCAL_IS_HOST_MODULE
ifneq ($($(my_prefix)OS),windows)
ifeq ($(my_clang),)
my_clang := true
endif
ifeq ($($(my_prefix)OS),windows)
ifeq ($(my_clang),true)
$(error $(LOCAL_MODULE_MAKEFILE): $(LOCAL_MODULE): Clang is not yet supported for windows binaries)
endif
my_clang := false
else
ifeq ($(my_clang),)
my_clang := true
endif
endif
# Add option to make gcc the default for device build
else ifeq ($(USE_CLANG_PLATFORM_BUILD),false)