Commit eeab6d71 authored by Vlad Tsyrklevich's avatar Vlad Tsyrklevich Committed by Commit Bot

SafeStack: Package SafeStack runtime for Linux

Bug: 864705
Change-Id: I8ebce1fd5911f90b8313a27f9d9e11e229ec0b6b
Reviewed-on: https://chromium-review.googlesource.com/1162757
Commit-Queue: Vlad Tsyrklevich <vtsyrklevich@chromium.org>
Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#581690}
parent 4fc664d0
......@@ -18,6 +18,8 @@
gs://chromium-browser-clang/$x/llvmobjdump-$rev.tgz ; \
gsutil.py cp -n -a public-read gs://chromium-browser-clang-staging/$x/llvmcfiverify-$rev.tgz \
gs://chromium-browser-clang/$x/llvmcfiverify-$rev.tgz ; \
gsutil.py cp -n -a public-read gs://chromium-browser-clang-staging/$x/safestack-$rev.tgz \
gs://chromium-browser-clang/$x/safestack-$rev.tgz ; \
gsutil.py cp -n -a public-read gs://chromium-browser-clang-staging/$x/translation_unit-$rev.tgz \
gs://chromium-browser-clang/$x/translation_unit-$rev.tgz ; \
gsutil.py cp -n -a public-read gs://chromium-browser-clang-staging/$x/llvm-code-coverage-$rev.tgz \
......
......@@ -8,6 +8,7 @@ to a tgz file."""
import argparse
import fnmatch
import glob
import itertools
import os
import shutil
......@@ -383,6 +384,23 @@ def main():
filter=PrintTarProgress)
MaybeUpload(args, cfiverifydir, platform)
# Zip up the SafeStack runtime for Linux
safestackdir = 'safestack-' + stamp
shutil.rmtree(safestackdir, ignore_errors=True)
os.makedirs(os.path.join(safestackdir, 'lib'))
for build in glob.glob(os.path.join(LLVM_RELEASE_DIR, 'lib', 'clang', '*')):
version = os.path.basename(build)
dest_dir = os.path.join(safestackdir, 'lib', 'clang', version,
'lib', 'linux')
os.makedirs(dest_dir)
for lib in glob.glob(os.path.join(build, 'lib', 'linux',
'*libclang_rt.safestack*')):
shutil.copy(lib, dest_dir)
with tarfile.open(safestackdir + '.tgz', 'w:gz') as tar:
tar.add(os.path.join(safestackdir, 'lib'), arcname='lib',
filter=PrintTarProgress)
MaybeUpload(args, safestackdir, platform)
# On Mac, lld isn't part of the main zip. Upload it in a separate zip.
if sys.platform == 'darwin':
llddir = 'lld-' + stamp
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment