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

Commit 9cd06f24 authored by Chih-hung Hsieh's avatar Chih-hung Hsieh Committed by android-build-merger
Browse files

Merge "Disable implicit-integer-sign-change by default."

am: a441818a

Change-Id: I804b76d61d87d3d7913cfbacb5bbed530aca998d
parents e04a4b98 a441818a
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -414,3 +414,14 @@ ifneq ($(my_sanitize_diag),)
    endif
  endif
endif

# http://b/119329758, Android core does not boot up with this sanitizer yet.
# Previously sanitized modules might not pass new implicit-integer-sign-change check.
# Disable this check unless it has been explicitly specified.
ifneq ($(findstring fsanitize,$(my_cflags)),)
  ifneq ($(findstring integer,$(my_cflags)),)
    ifeq ($(findstring sanitize=implicit-integer-sign-change,$(my_cflags)),)
      my_cflags += -fno-sanitize=implicit-integer-sign-change
    endif
  endif
endif