Skip to content

Commit 4e56207

Browse files
diandersmasahir0y
authored andcommitted
kbuild: Cache a few more calls to the compiler
These are a few stragglers that I left out of the original patch to cache calls to the C compiler ("kbuild: Add a cache for generated variables") because they bleed out into the main Makefile and thus uglify things a little bit. The idea is the same here, though. Signed-off-by: Douglas Anderson <[email protected]> Tested-by: Ingo Molnar <[email protected]> Tested-by: Guenter Roeck <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 3298b69 commit 4e56207

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
@@ -638,7 +638,7 @@ KBUILD_CFLAGS += $(call cc-ifversion, -lt, 0409, \
638638
KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0)
639639

640640
# check for 'asm goto'
641-
ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y)
641+
ifeq ($(call shell-cached,$(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y)
642642
KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
643643
KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
644644
endif
@@ -774,7 +774,7 @@ KBUILD_CFLAGS += $(call cc-option,-fdata-sections,)
774774
endif
775775

776776
# arch Makefile may override CC so keep this after arch Makefile is included
777-
NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
777+
NOSTDINC_FLAGS += -nostdinc -isystem $(call shell-cached,$(CC) -print-file-name=include)
778778
CHECKFLAGS += $(NOSTDINC_FLAGS)
779779

780780
# warn about C99 declaration after statement

0 commit comments

Comments
 (0)