Application.mk:upgrade warning to error

for the case where MAINSRC and PROGNAME do not match

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19 2023-09-07 21:06:36 +08:00 committed by Xiang Xiao
parent 7dda7f1dee
commit 55647b8458

View File

@ -96,7 +96,7 @@ endif
ifneq ($(strip $(PROGNAME)),)
PROGOBJ := $(MAINCOBJ) $(MAINCXXOBJ) $(MAINRUSTOBJ)
ifneq ($(words $(PROGOBJ)), $(words $(PROGNAME)))
$(warning "program names $(PROGNAME) does not match mainsrcs $(PROGOBJ)")
$(error "program names $(PROGNAME) does not match mainsrcs $(PROGOBJ)")
endif
PROGLIST := $(addprefix $(BINDIR)$(DELIM),$(PROGNAME))
REGLIST := $(addprefix $(BUILTIN_REGISTRY)$(DELIM),$(addsuffix .bdat,$(PROGNAME)))