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

Commit 5e2c1bec authored by Florian Mayer's avatar Florian Mayer Committed by Gerrit Code Review
Browse files

Merge "Use linker_hwasan64 for make built HWASan executables"

parents bf8e3d5d 97222e19
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -446,6 +446,13 @@ endif
# If local module needs HWASAN, add compiler flags.
ifneq ($(filter hwaddress,$(my_sanitize)),)
  my_cflags += $(HWADDRESS_SANITIZER_CONFIG_EXTRA_CFLAGS)

  ifneq ($(filter EXECUTABLES NATIVE_TESTS,$(LOCAL_MODULE_CLASS)),)
    ifneq ($(LOCAL_FORCE_STATIC_EXECUTABLE),true)
      my_linker := /system/bin/linker_hwasan64
    endif
  endif

endif

# Use minimal diagnostics when integer overflow is enabled; never do it for HOST modules