fix: see NJU-ProjectN/nemu#85
This commit is contained in:
parent
12f5ba0897
commit
86ba43a25b
1 changed files with 2 additions and 0 deletions
|
@ -40,7 +40,9 @@ SRCS-y += $(shell find -L $(DIRS-y) -name "*.c")
|
|||
SRCS = $(filter-out $(SRCS-BLACKLIST-y),$(SRCS-y))
|
||||
|
||||
# Extract compiler and options from menuconfig
|
||||
ifneq ($(CONFIG_CC),)
|
||||
CC = $(call remove_quote,$(CONFIG_CC))
|
||||
endif
|
||||
CFLAGS_BUILD += $(call remove_quote,$(CONFIG_CC_OPT))
|
||||
CFLAGS_BUILD += $(if $(CONFIG_CC_LTO),-flto,)
|
||||
CFLAGS_BUILD += $(if $(CONFIG_CC_DEBUG),-Og -ggdb3,)
|
||||
|
|
Loading…
Reference in a new issue