Install one ASAN, not both

Installing both seems to cause problems on CentOS 7.
This commit is contained in:
Markus Mäkelä 2020-11-13 15:55:47 +02:00
parent c49a28ef12
commit fa0b9d8df1
No known key found for this signature in database
GPG Key ID: 5CE746D557ACC499

View File

@ -127,12 +127,18 @@ then
sudo yum -y install centos-release-scl || \
sudo yum-config-manager --enable rhui-REGION-rhel-server-rhscl
sudo yum -y install devtoolset-7-gcc-c++
sudo yum -y install devtoolset-7-libasan-devel
# Enable it by default
echo "source /opt/rh/devtoolset-7/enable" >> ~/.bashrc
# Install newer compiler for CentOS 7 and 6
grep "release [67]" /etc/redhat-release
if [ $? -eq 0 ]
then
sudo yum -y install devtoolset-7-gcc-c++
sudo yum -y install devtoolset-7-libasan-devel
# Enable it by default
echo "source /opt/rh/devtoolset-7/enable" >> ~/.bashrc
else
# CentOS 8 only needs ASAN
sudo yum -y install libasan-devel
fi
grep "release 6" /etc/redhat-release
if [ $? -ne 0 ]