Install one ASAN, not both
Installing both seems to cause problems on CentOS 7.
This commit is contained in:
parent
c49a28ef12
commit
fa0b9d8df1
@ -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 ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user