Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Unified Diff: tools/clang/scripts/package.py

Issue 2896663002: Package the translation_unit tool as part of building the clang package. (Closed)
Patch Set: don't include unistd.h Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/download_translation_unit_tool.py ('k') | tools/clang/scripts/update.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « build/download_translation_unit_tool.py ('k') | tools/clang/scripts/update.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698