Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2114c5ab authored by Andreas Gampe's avatar Andreas Gampe
Browse files

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
parent ff999725
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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