Merge "Disable unsigned-shift-base by default." am: 7604390e4c
am: 80140ebb26
Original change: https://android-review.googlesource.com/c/platform/build/+/1551634 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I45d6b6b41616ecdaa3b9797f7fbe97e091f78d7c
This commit is contained in:
commit
c85e1a5f7c
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue