From 267694f5559a87968708f36b5c65fc56887977f9 Mon Sep 17 00:00:00 2001 From: Mao Jinlong Date: Tue, 5 Sep 2017 16:04:00 +0800 Subject: [PATCH] scripts: correct cflags for kasan Enable address sanitizer flags for kasan by default. Change-Id: Ib08149a7d1af589fed3ce30659cb495d4bb2fb81 Signed-off-by: Mao Jinlong --- scripts/Makefile.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index cea530c7cdea4..0f1d00484af3c 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -125,7 +125,7 @@ endif # ifeq ($(CONFIG_KASAN),y) _c_flags += $(if $(patsubst n%,, \ - $(KASAN_SANITIZE_$(basetarget).o)$(KASAN_SANITIZE)$(CONFIG_KASAN_SANITIZE_ALL)), \ + $(KASAN_SANITIZE_$(basetarget).o)$(KASAN_SANITIZE)y), \ $(CFLAGS_KASAN)) endif