Merge "Forbid Clang for Windows"

am: e4d5e08

* commit 'e4d5e08c2ec0d9db6b2baa160d4bf847331a331f':
  Forbid Clang for Windows

Change-Id: Idf4637ba20b1744f33b7425384ce1759b87c8fe3
This commit is contained in:
Dan Willemsen 2016-03-29 20:59:52 +00:00 committed by android-build-merger
commit 1eb24425d0
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 clang the default for device build
else ifeq ($(USE_CLANG_PLATFORM_BUILD),true)