Index: tools/clang/scripts/package.py |
diff --git a/tools/clang/scripts/package.py b/tools/clang/scripts/package.py |
index d0aded21d6e3bef6d325687c6006124b02b8711c..f6ef48e7ff055099dd14a69dae6f4a5fb7c356be 100755 |
--- a/tools/clang/scripts/package.py |
+++ b/tools/clang/scripts/package.py |
@@ -365,6 +365,18 @@ def main(): |
filter=PrintTarProgress) |
MaybeUpload(args, objdumpdir, platform) |
+ # Zip up the translation_unit tool. |
+ translation_unit_dir = 'translation_unit-' + stamp |
+ shutil.rmtree(translation_unit_dir, ignore_errors=True) |
+ os.makedirs(os.path.join(translation_unit_dir, 'bin')) |
+ shutil.copy(os.path.join(LLVM_RELEASE_DIR, 'bin', 'translation_unit' + |
+ exe_ext), |
+ os.path.join(translation_unit_dir, 'bin')) |
+ with tarfile.open(translation_unit_dir + '.tgz', 'w:gz') as tar: |
+ tar.add(os.path.join(translation_unit_dir, 'bin'), arcname='bin', |
+ filter=PrintTarProgress) |
+ MaybeUpload(args, translation_unit_dir, platform) |
+ |
if sys.platform == 'win32' and args.upload: |
UploadPDBToSymbolServer() |