diff --git a/build/clang-plugin/tests/Makefile.in b/build/clang-plugin/tests/Makefile.in index ae5691bdc2ba..318c9a026141 100644 --- a/build/clang-plugin/tests/Makefile.in +++ b/build/clang-plugin/tests/Makefile.in @@ -4,10 +4,16 @@ include $(topsrcdir)/config/rules.mk -target:: $(OBJS) +$(OBJS): $(CLANG_PLUGIN) -# We don't actually build anything. -.PHONY: $(OBJS) +# Because building the objects doesn't actually build anything, create +# a stamp file to avoid re-running the tests unless the test files or +# the plugin changed. And since no objects are created, and not having +# the files around makes the rule always, we create dummy files here too. +tests-ok: $(OBJS) $(CSRCS) $(CPPSRCS) $(CLANG_PLUGIN) + touch $@ $(OBJS) + +target-objects: tests-ok # Don't actually build a library, since we don't actually build objects. $(LIBRARY): EXPAND_LIBS_GEN=true diff --git a/moz.configure b/moz.configure index 28cf9018668c..7ab99c1c2913 100755 --- a/moz.configure +++ b/moz.configure @@ -697,6 +697,7 @@ def clang_plugin_path(library_name_info, build_env): ) +set_config("CLANG_PLUGIN", clang_plugin_path) add_old_configure_assignment("CLANG_PLUGIN", clang_plugin_path)