Make cflag comparison more specific just in case "$(DEPDIR)/" is in CFLAGS more than once

This commit is contained in:
rexy712 2020-03-17 16:53:46 -07:00
parent c8460d11f1
commit 77847aa42e
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ endef
.PHONY: cflags-update
cflags-update:
ifeq ($(SAVECFLAGS),1)
ifneq ($(subst $(DEPDIR)/,$(DEPDIR)/cflags-update,$(ALL_COMPILEFLAGS)),$(OLD_COMPILEFLAGS))
ifneq ($(subst -MF"$(DEPDIR)/",-MF"$(DEPDIR)/cflags-update",$(ALL_COMPILEFLAGS)),$(OLD_COMPILEFLAGS))
$(file >$(CFLAGS_TMPFILE),$(ALL_COMPILEFLAGS))
endif
endif

View File

@ -151,7 +151,7 @@ endef
.PHONY: cflags-update
cflags-update:
ifeq ($(SAVECFLAGS),1)
ifneq ($(subst $(DEPDIR)/,$(DEPDIR)/cflags-update,$(ALL_COMPILEFLAGS)),$(OLD_COMPILEFLAGS))
ifneq ($(subst -MF"$(DEPDIR)/",-MF"$(DEPDIR)/cflags-update",$(ALL_COMPILEFLAGS)),$(OLD_COMPILEFLAGS))
$(file >$(CFLAGS_TMPFILE),$(ALL_COMPILEFLAGS))
endif
endif