[BuildEnv] Update Dockerfile add libasan (#5616)
This commit is contained in:
@ -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"
|
||||
|
||||
|
||||
@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user