aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwhitequark <whitequark@whitequark.org>2020-08-26 16:53:47 +0000
committerwhitequark <whitequark@whitequark.org>2020-08-26 16:56:10 +0000
commitdeb19e1574621ea3dfafaaa3963e4164ba2d2684 (patch)
tree0799bbcd0a94df8ddcf87f14ad7bfee3aeed2094
parent4f2b78e19af3a2d342efe9780e220282b7a3a046 (diff)
downloadyosys-deb19e1574621ea3dfafaaa3963e4164ba2d2684.tar.gz
yosys-deb19e1574621ea3dfafaaa3963e4164ba2d2684.tar.bz2
yosys-deb19e1574621ea3dfafaaa3963e4164ba2d2684.zip
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.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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 :=