9"""Create a Clang toolchain for Linux hosts."""
20 args = [
'docker',
'build',
'-t',
'clang_linux_asset',
'./infra/bots/assets/clang_linux']
21 subprocess.run(args, check=
True, encoding=
'utf8')
24 print(
'Copying clang from Docker container into CIPD folder')
25 os.makedirs(target_dir, exist_ok=
True)
26 args = [
'docker',
'run',
'--mount',
'type=bind,source=%s,target=/OUT' % target_dir,
27 'clang_linux_asset',
'/bin/sh',
'-c',
31 'cp -R /tmp/clang_output/* /OUT && chmod -R a+w /OUT']
32 subprocess.run(args, check=
True, encoding=
'utf8')
36 parser = argparse.ArgumentParser()
37 parser.add_argument(
'--target_dir',
'-t', required=
True)
38 args = parser.parse_args()
42if __name__ ==
'__main__':
def print(*args, **kwargs)
def create_asset(chrome_src_path, browser_executable, target_dir, upload_to_partner_bucket, dm_path)