From deb19e1574621ea3dfafaaa3963e4164ba2d2684 Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 26 Aug 2020 16:53:47 +0000 Subject: [PATCH] Add -MP to CXXFLAGS. This avoids an issue where deleting or moving headers breaks the next incremental build until the outdated *.d files are deleted. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 444678e9d..7bc2fe490 100644 --- a/Makefile +++ b/Makefile @@ -82,7 +82,7 @@ all: top-all YOSYS_SRC := $(dir $(firstword $(MAKEFILE_LIST))) VPATH := $(YOSYS_SRC) -CXXFLAGS := $(CXXFLAGS) -Wall -Wextra -ggdb -I. -I"$(YOSYS_SRC)" -MD -D_YOSYS_ -fPIC -I$(PREFIX)/include +CXXFLAGS := $(CXXFLAGS) -Wall -Wextra -ggdb -I. -I"$(YOSYS_SRC)" -MD -MP -D_YOSYS_ -fPIC -I$(PREFIX)/include LDLIBS := $(LDLIBS) -lstdc++ -lm PLUGIN_LDFLAGS :=