Bug 1499196 - Use outputs as the key for rust commands in Tup once again. r=mshal

Now that we're outputing a stub file for each build script we can index these
commands by their output to de-duplicate them in the tup backend.

Differential Revision: https://phabricator.services.mozilla.com/D9042
This commit is contained in:
Chris Manchester 2018-10-21 18:56:23 +00:00
Родитель 56dc293f15
Коммит 9fc151a441
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -966,7 +966,7 @@ class TupBackend(CommonBackend):
invocation['full-deps'].update(inputs)
invocation['full-deps'].update(invocation['outputs'])
cmd_key = ' '.join(command)
cmd_key = ' '.join(outputs)
if cmd_key not in self._rust_cmds:
self._rust_cmds.add(cmd_key)
# We have some custom build scripts that depend on python code