Merge pull request #372 from scchan/fix_hipcc_rhel
On RHEL and CentOS, don't use libc++ since we are using the devtoolse…
[ROCm/hip commit: b4175c8ee6]
This commit is contained in:
@@ -125,9 +125,7 @@ if ($HIP_PLATFORM eq "hcc") {
|
|||||||
|
|
||||||
# Force -stdlib=libc++ on UB14.04
|
# Force -stdlib=libc++ on UB14.04
|
||||||
$HOST_OSVER= `cat /etc/os-release | grep "^VERSION_ID\=" | cut -d= -f2 | tr -d '\n'`;
|
$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\"")
|
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\"")) {
|
|
||||||
$HIPCXXFLAGS .= " -stdlib=libc++";
|
$HIPCXXFLAGS .= " -stdlib=libc++";
|
||||||
$setStdLib = 1;
|
$setStdLib = 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user