Bug 1599574 - Avoid re-running clang-plugin tests. r=firefox-build-system-reviewers,andi,mhentges

Differential Revision: https://phabricator.services.mozilla.com/D114320
This commit is contained in:
Mike Hommey 2021-05-05 21:21:11 +00:00
Родитель c5a6496e3e
Коммит 8189f56cd9
2 изменённых файлов: 10 добавлений и 3 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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)