remove the check that progname matches mainsrc

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19 2023-10-09 19:48:05 +08:00 committed by Xiang Xiao
parent 77a5666cb7
commit a3bbea86ff

View File

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