summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 19a1f883f6..a261be265b 100644
--- a/Makefile
+++ b/Makefile
@@ -230,6 +230,10 @@ tests-clean:
tests: $(objpfx)c++-types-check.out
ifneq ($(CXX),no)
+ifneq (,$(wildcard scripts/data/c++-types-$(config-machine)-$(config-os).data))
+$(objpfx)c++-types-check.out: scripts/data/c++-types-$(config-machine)-$(config-os).data
+ scripts/check-c++-types.sh $^ $(CXX) $(filter-out -std=gnu99,$(CFLAGS)) $(CPPFLAGS) > $@
+else
ifneq (,$(wildcard scripts/data/c++-types-$(base-machine)-$(config-os).data))
$(objpfx)c++-types-check.out: scripts/data/c++-types-$(base-machine)-$(config-os).data
scripts/check-c++-types.sh $^ $(CXX) $(filter-out -std=gnu99,$(CFLAGS)) $(CPPFLAGS) > $@
@@ -239,6 +243,7 @@ $(objpfx)c++-types-check.out:
@echo "not run" > $@
endif
endif
+endif
# The realclean target is just like distclean for the parent, but we want
# the subdirs to know the difference in case they care.