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

Commit ae1a32db authored by Evgenii Stepanov's avatar Evgenii Stepanov Committed by android-build-merger
Browse files

Merge "Add extra cflags to hwasan targets."

am: ad951c51

Change-Id: I6957f09eb9f5ee23f529b2560d951fa0fd6332d9
parents afcb3508 ad951c51
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -370,6 +370,11 @@ ifneq ($(filter address,$(my_sanitize)),)
  endif
  endif
endif
endif


# If local module needs HWASAN, add compiler flags.
ifneq ($(filter hwaddress,$(my_sanitize)),)
  my_cflags += $(HWADDRESS_SANITIZER_CONFIG_EXTRA_CFLAGS)
endif

# Use minimal diagnostics when integer overflow is enabled; never do it for HOST or AUX modules
# Use minimal diagnostics when integer overflow is enabled; never do it for HOST or AUX modules
ifeq ($(LOCAL_IS_HOST_MODULE)$(LOCAL_IS_AUX_MODULE),)
ifeq ($(LOCAL_IS_HOST_MODULE)$(LOCAL_IS_AUX_MODULE),)
  # Pre-emptively add UBSAN minimal runtime incase a static library dependency requires it
  # Pre-emptively add UBSAN minimal runtime incase a static library dependency requires it