Skip to content

Commit a1e034a

Browse files
committed
Use GCC for building GCC
1 parent 250f938 commit a1e034a

File tree

1 file changed

+3
-1
lines changed
  • src/ci/docker/host-x86_64/dist-x86_64-linux

1 file changed

+3
-1
lines changed

src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ ENV SCRIPT python3 ../x.py build --set rust.debug=true opt-dist && \
101101
./build/$HOSTS/stage0-tools-bin/opt-dist linux-ci -- python3 ../x.py dist \
102102
--host $HOSTS --target $HOSTS \
103103
--include-default-paths \
104-
build-manifest bootstrap gcc
104+
build-manifest bootstrap && \
105+
# Use GCC for building GCC, as it seems to behave badly when built with Clang
106+
CC=/rustroot/bin/cc CXX=/rustroot/bin/c++ python3 ../x.py dist gcc
105107
ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=clang
106108

107109
# This is the only builder which will create source tarballs

0 commit comments

Comments
 (0)