summaryrefslogtreecommitdiff
path: root/core/executable.mk
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2018-10-10 19:27:04 -0700
committer Andreas Gampe <agampe@google.com> 2018-10-10 19:27:04 -0700
commit2114c5ab3f34b4381036e94d4912c3f6a2c0c1c0 (patch)
treea38e3993fdd653fca545ca0a2cd7032fbc33f5cd /core/executable.mk
parentff999725ac65abb582c943be81a9e34b2cc96e2a (diff)
Build: Do not build sanitize-never executable
When LOCAL_SANITIZE := never is given for an executable, skip building the binary in the ASAN build stage. Bug: 117579123 Test: Build ASAN image with a never-sanitized executable Change-Id: I6495fc857678ca9b46527c7d60ee71112004266d
Diffstat (limited to 'core/executable.mk')
-rw-r--r--core/executable.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/executable.mk b/core/executable.mk
index e8b2f3059e..e71ff339b8 100644
--- a/core/executable.mk
+++ b/core/executable.mk
@@ -12,6 +12,8 @@ ifneq ($(filter address,$(SANITIZE_TARGET)),)
my_skip_this_target := true
else ifeq (false, $(LOCAL_CLANG))
my_skip_this_target := true
+ else ifeq (never, $(LOCAL_SANITIZE))
+ my_skip_this_target := true
endif
endif