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

Commit 80140ebb authored by Yabin Cui's avatar Yabin Cui Committed by Automerger Merge Worker
Browse files

Merge "Disable unsigned-shift-base by default." am: 7604390e

Original change: https://android-review.googlesource.com/c/platform/build/+/1551634

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I358911a212bbfc7f80b07a5c2e9092f331eed5c7
parents b0af9fad 7604390e
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -441,3 +441,13 @@ ifneq ($(findstring fsanitize,$(my_cflags)),)
    endif
  endif
endif

# http://b/177566116, libc++ may crash with this sanitizer.
# Disable this check unless it has been explicitly specified.
ifneq ($(findstring fsanitize,$(my_cflags)),)
  ifneq ($(findstring integer,$(my_cflags)),)
    ifeq ($(findstring sanitize=unsigned-shift-base,$(my_cflags)),)
      my_cflags += -fno-sanitize=unsigned-shift-base
    endif
  endif
endif