From 52a91d7c3a18e2fafcb2a2c47a340a8b51b13eda Mon Sep 17 00:00:00 2001 From: Siu Chi Chan Date: Thu, 15 Mar 2018 16:46:01 -0400 Subject: [PATCH] On RHEL and CentOS, don't use libc++ since we are using the devtoolset-7 which has a newer g++ --- bin/hipcc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/hipcc b/bin/hipcc index 14b8ba650c..f796b0bf95 100755 --- a/bin/hipcc +++ b/bin/hipcc @@ -125,9 +125,7 @@ if ($HIP_PLATFORM eq "hcc") { # Force -stdlib=libc++ on UB14.04 $HOST_OSVER= `cat /etc/os-release | grep "^VERSION_ID\=" | cut -d= -f2 | tr -d '\n'`; - if (($HOST_OSNAME eq "ubuntu" and $HOST_OSVER eq "\"14.04\"") - or ($HOST_OSNAME eq "\"centos\"" and $HOST_OSVER eq "\"7\"") - or ($HOST_OSNAME eq "\"rhel\"" and $HOST_OSVER eq "\"7.4\"")) { + if ($HOST_OSNAME eq "ubuntu" and $HOST_OSVER eq "\"14.04\"") { $HIPCXXFLAGS .= " -stdlib=libc++"; $setStdLib = 1; }