summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dan Willemsen <dwillemsen@google.com> 2019-05-16 14:16:50 -0700
committer Treehugger Robot <treehugger-gerrit@google.com> 2019-05-17 00:51:41 +0000
commit82cc9601d657965d9bff7cc0a63a603df0e1eae5 (patch)
treef5b06f5d48a55e0c6aac64a9c281b1331eae5908
parent27a47a3c100658797032f443607eb0a62e9e537b (diff)
Make output of generate_operator_out reproducible
As part of using python_binary_host, argv[0] is often the extracted python script in a temporary directory. Just hardcode the generate_operator_out.py name so that a random directory isn't encoded in the output. Test: m art_compiler_operator_srcs; inspect output Change-Id: Ie2a875a1ab288bd56577b2451d4f3e6e0ad70032
-rwxr-xr-xtools/generate_operator_out.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/generate_operator_out.py b/tools/generate_operator_out.py
index 3bd62fe1db..73e96fec06 100755
--- a/tools/generate_operator_out.py
+++ b/tools/generate_operator_out.py
@@ -183,7 +183,7 @@ def main():
print('')
for enum_name in _ENUMS:
- print('// This was automatically generated by %s --- do not edit!' % sys.argv[0])
+ print('// This was automatically generated by art/tools/generate_operator_out.py --- do not edit!')
namespaces = _NAMESPACES[enum_name].split('::')
for namespace in namespaces: