Build gcc with lld linker

This commit is contained in:
alesapin 2020-03-03 15:32:54 +03:00
parent 2cfe26c3d3
commit 49c0642c49
2 changed files with 4 additions and 8 deletions

View File

@ -43,9 +43,8 @@ RUN apt-get update -y \
rename \
wget
# This symlink required by gcc to find lld compiler but currently we have
# problems with query profiler when gcc use lld as linker
# RUN ln -s /usr/bin/lld-8 /usr/bin/ld.lld
# This symlink required by gcc to find lld compiler
RUN ln -s /usr/bin/lld-8 /usr/bin/ld.lld
ENV CC=clang-8
ENV CXX=clang++-8

View File

@ -65,8 +65,6 @@ RUN apt-get --allow-unauthenticated update -y \
pigz \
moreutils
# Special dpkg-deb (https://github.com/ClickHouse-Extras/dpkg) version which is able
# to compress files using pigz (https://zlib.net/pigz/) instead of gzip.
# Significantly increase deb packaging speed and compatible with old systems
@ -74,9 +72,8 @@ RUN curl -O https://clickhouse-builds.s3.yandex.net/utils/dpkg-deb
RUN chmod +x dpkg-deb
RUN cp dpkg-deb /usr/bin
# This symlink required by gcc to find lld compiler but currently we have
# problems with query profiler when gcc use lld as linker
# RUN ln -s /usr/bin/lld-8 /usr/bin/ld.lld
# This symlink required by gcc to find lld compiler
RUN ln -s /usr/bin/lld-8 /usr/bin/ld.lld
COPY build.sh /