> compile NEMU
221220000 张三 Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 23:41:15 up 4 days, 11:49, 3 users, load average: 0.74, 0.48, 0.41
This commit is contained in:
@ -46,6 +46,7 @@ CFLAGS_BUILD += $(if $(CONFIG_CC_LTO),-flto,)
|
|||||||
CFLAGS_BUILD += $(if $(CONFIG_CC_DEBUG),-Og -ggdb3,)
|
CFLAGS_BUILD += $(if $(CONFIG_CC_DEBUG),-Og -ggdb3,)
|
||||||
CFLAGS_BUILD += $(if $(CONFIG_CC_ASAN),-fsanitize=address,)
|
CFLAGS_BUILD += $(if $(CONFIG_CC_ASAN),-fsanitize=address,)
|
||||||
CFLAGS_TRACE += -DITRACE_COND=$(if $(CONFIG_ITRACE_COND),$(call remove_quote,$(CONFIG_ITRACE_COND)),true)
|
CFLAGS_TRACE += -DITRACE_COND=$(if $(CONFIG_ITRACE_COND),$(call remove_quote,$(CONFIG_ITRACE_COND)),true)
|
||||||
|
CFLAGS_TRACE += -DMTRACE_COND=$(if $(CONFIG_MTRACE_COND),$(call remove_quote,$(CONFIG_MTRACE_COND)),true)
|
||||||
CFLAGS += $(CFLAGS_BUILD) $(CFLAGS_TRACE) -D__GUEST_ISA__=$(GUEST_ISA)
|
CFLAGS += $(CFLAGS_BUILD) $(CFLAGS_TRACE) -D__GUEST_ISA__=$(GUEST_ISA)
|
||||||
LDFLAGS += $(CFLAGS_BUILD)
|
LDFLAGS += $(CFLAGS_BUILD)
|
||||||
|
|
||||||
|
@ -22,8 +22,7 @@ CXX := g++
|
|||||||
endif
|
endif
|
||||||
LD := $(CXX)
|
LD := $(CXX)
|
||||||
INCLUDES = $(addprefix -I, $(INC_PATH))
|
INCLUDES = $(addprefix -I, $(INC_PATH))
|
||||||
DEFINE = _
|
CFLAGS := -O2 -MMD -Wall -Werror $(INCLUDES) $(CFLAGS)
|
||||||
CFLAGS := -O2 -MMD -Wall -Werror $(INCLUDES) $(CFLAGS) -D$(DEFINE)
|
|
||||||
LDFLAGS := -O2 $(LDFLAGS)
|
LDFLAGS := -O2 $(LDFLAGS)
|
||||||
|
|
||||||
OBJS = $(SRCS:%.c=$(OBJ_DIR)/%.o) $(CXXSRC:%.cc=$(OBJ_DIR)/%.o)
|
OBJS = $(SRCS:%.c=$(OBJ_DIR)/%.o) $(CXXSRC:%.cc=$(OBJ_DIR)/%.o)
|
||||||
|
Reference in New Issue
Block a user