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:
parent
7dda7f1dee
commit
55647b8458
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user