Do not enable sanitizers on Windows

Bug: http://b/69933068

Test: m native-host-cross SANITIZE_HOST=address
Change-Id: I0b99797d218dc34d302906d704d991e59698c351
This commit is contained in:
Pirama Arumuga Nainar 2018-06-26 14:17:55 -07:00
parent 060c99c33e
commit c6a3ddf834
1 changed files with 5 additions and 3 deletions

View File

@ -12,10 +12,12 @@ my_global_sanitize :=
my_global_sanitize_diag := my_global_sanitize_diag :=
ifeq ($(my_clang),true) ifeq ($(my_clang),true)
ifdef LOCAL_IS_HOST_MODULE ifdef LOCAL_IS_HOST_MODULE
my_global_sanitize := $(strip $(SANITIZE_HOST)) ifneq ($(HOST_CROSS_OS),windows)
my_global_sanitize := $(strip $(SANITIZE_HOST))
# SANITIZE_HOST=true is a deprecated way to say SANITIZE_HOST=address. # SANITIZE_HOST=true is a deprecated way to say SANITIZE_HOST=address.
my_global_sanitize := $(subst true,address,$(my_global_sanitize)) my_global_sanitize := $(subst true,address,$(my_global_sanitize))
endif
else else
my_global_sanitize := $(strip $(SANITIZE_TARGET)) my_global_sanitize := $(strip $(SANITIZE_TARGET))
my_global_sanitize_diag := $(strip $(SANITIZE_TARGET_DIAG)) my_global_sanitize_diag := $(strip $(SANITIZE_TARGET_DIAG))