Commit 102a658b authored by Nico Weber's avatar Nico Weber

clang update.py/linux: Use a gcc4.8.2 that was prebuilt on Precise.

That way, the libstdc++ that's used by default should work on the bots.
Before this change, one had to pass --gcc-toolchain pointing to a precise-built
gcc when building linux clang binaries.

BUG=509739
TBR=hans@chromium.org

Review URL: https://codereview.chromium.org/1555443002 .

Cr-Commit-Position: refs/heads/master@{#367026}
parent 842ece22
......@@ -279,10 +279,11 @@ def MaybeDownloadHostGcc(args):
if subprocess.check_output(['gcc', '-dumpversion']).rstrip() < '4.7.0':
# We need a newer gcc version.
gcc_dir = os.path.join(LLVM_BUILD_TOOLS_DIR, 'gcc482')
gcc_dir = os.path.join(LLVM_BUILD_TOOLS_DIR, 'gcc482precise')
if not os.path.exists(gcc_dir):
print 'Downloading pre-built GCC 4.8.2...'
DownloadAndUnpack(CDS_URL + '/tools/gcc482.tgz', LLVM_BUILD_TOOLS_DIR)
DownloadAndUnpack(
CDS_URL + '/tools/gcc482precise.tgz', LLVM_BUILD_TOOLS_DIR)
args.gcc_toolchain = gcc_dir
else:
# Always set gcc_toolchain; llvm-symbolizer needs the bundled libstdc++.
......
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