Skip to content

Commit 0be314c

Browse files
Andi Kleengitster
authored andcommitted
Use BASIC_FLAGS for profile feedback
Use BASIC_CFLAGS instead of CFLAGS to set up the profile feedback option in the Makefile. This allows still overriding CFLAGS on the make command line without disabling profile feedback. Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6f92e5f commit 0be314c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,13 +1552,13 @@ endif
15521552
PROFILE_DIR := $(CURDIR)
15531553

15541554
ifeq ("$(PROFILE)","GEN")
1555-
CFLAGS += -fprofile-generate=$(PROFILE_DIR) -DNO_NORETURN=1
1555+
BASIC_CFLAGS += -fprofile-generate=$(PROFILE_DIR) -DNO_NORETURN=1
15561556
EXTLIBS += -lgcov
15571557
export CCACHE_DISABLE = t
15581558
V = 1
15591559
else
15601560
ifneq ("$(PROFILE)","")
1561-
CFLAGS += -fprofile-use=$(PROFILE_DIR) -fprofile-correction -DNO_NORETURN=1
1561+
BASIC_CFLAGS += -fprofile-use=$(PROFILE_DIR) -fprofile-correction -DNO_NORETURN=1
15621562
export CCACHE_DISABLE = t
15631563
V = 1
15641564
endif

0 commit comments

Comments
 (0)