Exemplo n.º 1
0
def SyncPrebuiltClang(name, src_dir, git_repo):
    """Update the prebuilt clang toolchain used by chromium bots"""
    tools_clang = os.path.join(src_dir, 'tools', 'clang')
    if os.path.isdir(tools_clang):
        print 'Prebuilt Chromium Clang directory already exists'
    else:
        print 'Cloning Prebuilt Chromium Clang directory'
        file_util.Mkdir(src_dir)
        file_util.Mkdir(os.path.join(src_dir, 'tools'))
        proc.check_call(['git', 'clone', git_repo, tools_clang])
    proc.check_call(['git', 'fetch'], cwd=tools_clang)
    proc.check_call(['git', 'checkout', 'origin/master'], cwd=tools_clang)
    proc.check_call([os.path.join(tools_clang, 'scripts', 'update.py')])
    return ('chromium-clang', tools_clang)
Exemplo n.º 2
0
def CopyDlls(dir, configuration):
    """Copy MSVS Runtime dlls into a build directory"""
    file_util.Mkdir(dir)
    proc.check_call(VSToolchainPy() + ['copy_dlls', dir, configuration, 'x64'])
    # LLD needs also concrt140.dll, which the Chromium copy_dlls doesn't
    # include.
    for dll in glob.glob(os.path.join(GetRuntimeDir(), 'concrt140*.dll')):
        print('Copying %s to %s' % (dll, dir))
        shutil.copy2(dll, dir)