[BuildEnv] Update Dockerfile add libasan (#5616)

This commit is contained in:
Zhengguo Yang
2021-04-11 22:02:49 +08:00
committed by GitHub
parent a25e3afa5b
commit 91043bb116
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ RUN yum makecache && yum -y update && yum -y groupinstall 'Development Tools' &&
# install gcc10
RUN wget http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol7 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle && \
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-* && \
yum install -y devtoolset-10-gcc*
yum install -y devtoolset-10-gcc* devtoolset-10-libubsan-devel devtoolset-10-liblsan-devel devtoolset-10-libasan-devel
ENV JAVA_HOME="/usr/lib/jvm/java-11"

View File

@ -25,7 +25,7 @@ ARG GCC_VERSION=7.3.0
ARG GCC_URL=https://mirrors.ustc.edu.cn/gnu/gcc/gcc-${GCC_VERSION}
# install dependencies and build gcc
RUN yum install -y bzip2 wget git gcc-c++ libstdc++-static byacc flex automake libtool binutils-devel bison ncurses-devel make mlocate unzip patch which vim-common redhat-lsb-core zip libcurl-devel \
RUN yum install -y bzip2 wget git gcc-c++ libstdc++-static byacc flex automake libtool binutils-devel bison ncurses-devel make mlocate unzip patch which vim-common redhat-lsb-core zip libcurl-devel libasan-static libtsan-static \
&& updatedb \
&& yum -y clean all \
&& rm -rf /var/cache/yum \