17FILE_DIR = os.path.dirname(os.path.abspath(__file__))
18INFRA_BOTS_DIR = os.path.realpath(os.path.join(FILE_DIR, os.pardir, os.pardir))
19sys.path.insert(0, INFRA_BOTS_DIR)
24CLANG_REVISION =
'llvmorg-18-init-17730-gf670112a'
27PACKAGE_VERSION =
'%s-%s' % (CLANG_REVISION, CLANG_SUB_REVISION)
31GS_URL = (
'https://commondatastorage.googleapis.com/chromium-browser-clang'
32 '/Win/clang-%s.tgz' % PACKAGE_VERSION)
36 """Create the asset."""
39 subprocess.check_call([
'wget',
'-O', tarball, GS_URL])
40 subprocess.check_call([
'tar',
'zxvf', tarball])
45 parser = argparse.ArgumentParser()
46 parser.add_argument(
'--target_dir',
'-t', required=
True)
47 args = parser.parse_args()
51if __name__ ==
'__main__':
def create_asset(target_dir)