clang: Use gcc package built for bionic as host gcc
Now that linux_upload_clang is on bionic, we can build gcc it
downloads on bionic too.
I built this gcc in a ubuntu:bionic image as described here:
The clang build uses an older clang as host compiler for building
the bootstrap compiler (on the packaging bots) or the final
compiler (on the ToT bots), but we still use the libstdc++ from
the gcc image at the moment. (It's statically linked into
the final clang, and some rust tooling uses that libstdc++ too).
The clang we build already requires bionic (since linux_upload_clang
runs bionic, and clang isn't' built in a sysroot yet), so
libstdc++ requiring bionic shouldn't cause any new issues.
The current (trusty-based) gcc had header issues that made
it impossible to use it with a sysroot for building clang.
This is better with gcc targeting a slightly newer linux
(or, rather, glibc). So this change hopefully helps with
eventually building clang itself against a sysroot.
Hopefully no behavior change.
Reviewed-by: Hans Wennborg <email@example.com>
Commit-Queue: Nico Weber <firstname.lastname@example.org>
2 files changed