Use $(my_prefix)OS instead of HOST_CROSS_OS

The latter is not module-specific and prevents santizer configuration
for all host modules.

Test: mma HOST_SANITIZE=address hardware/google/apf
Change-Id: I62a448973c1d6526e4b475f3288996e44c88fbc9
This commit is contained in:
Pirama Arumuga Nainar 2018-06-27 09:40:21 -07:00
parent 14add31780
commit 407b6aca28
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ my_global_sanitize :=
my_global_sanitize_diag :=
ifeq ($(my_clang),true)
ifdef LOCAL_IS_HOST_MODULE
ifneq ($(HOST_CROSS_OS),windows)
ifneq ($($(my_prefix)OS),windows)
my_global_sanitize := $(strip $(SANITIZE_HOST))
# SANITIZE_HOST=true is a deprecated way to say SANITIZE_HOST=address.