OSDN Git Service

Disable -Wframe-larger-than when building SANITIZE_TARGET.
authorEvgenii Stepanov <eugenis@google.com>
Mon, 15 Jun 2015 22:55:22 +0000 (15:55 -0700)
committerEvgenii Stepanov <eugenis@google.com>
Mon, 15 Jun 2015 22:57:19 +0000 (15:57 -0700)
The same has been done for SANITIZE_HOST some time ago.
AddressSanitizer adds redzones around local variables, increasing
function frame size by 2x to 3x.

Bug: 21785137
Change-Id: If53456894a2e6e38318b681dbc69547b05b6f33c

build/Android.common_build.mk

index ace6a73..29b3573 100644 (file)
@@ -256,7 +256,9 @@ ifeq ($(HOST_OS),linux)
       ifndef SANITIZE_HOST
         art_host_non_debug_cflags += -Wframe-larger-than=2700
       endif
-      art_target_non_debug_cflags += -Wframe-larger-than=1728
+      ifndef SANITIZE_TARGET
+        art_target_non_debug_cflags += -Wframe-larger-than=1728
+      endif
     endif
   endif
 endif