Make cflag comparison more specific just in case "$(DEPDIR)/" is in CFLAGS more than once
This commit is contained in:
parent
c8460d11f1
commit
77847aa42e
@ -140,7 +140,7 @@ endef
|
|||||||
.PHONY: cflags-update
|
.PHONY: cflags-update
|
||||||
cflags-update:
|
cflags-update:
|
||||||
ifeq ($(SAVECFLAGS),1)
|
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))
|
$(file >$(CFLAGS_TMPFILE),$(ALL_COMPILEFLAGS))
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|||||||
@ -151,7 +151,7 @@ endef
|
|||||||
.PHONY: cflags-update
|
.PHONY: cflags-update
|
||||||
cflags-update:
|
cflags-update:
|
||||||
ifeq ($(SAVECFLAGS),1)
|
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))
|
$(file >$(CFLAGS_TMPFILE),$(ALL_COMPILEFLAGS))
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user