From ffe21c9d751e85c0d1cfdb4f0c6c8a7840bdb8fb Mon Sep 17 00:00:00 2001 From: Aaron Enye Shi Date: Thu, 14 Sep 2017 10:55:38 -0400 Subject: [PATCH] hcc-config already sets -lc++ -lc++abi flags Since hcc-config will set the flags for CentOS7 and RHEL 7.X, we don't need to set flags here. --- bin/hipcc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/bin/hipcc b/bin/hipcc index 19c957757c..8f18ab0d8e 100755 --- a/bin/hipcc +++ b/bin/hipcc @@ -131,12 +131,6 @@ if ($HIP_PLATFORM eq "hcc") { $HIPCXXFLAGS .= " -stdlib=libc++"; $setStdLib = 1; } - # Force -stdlib=libc++ on Cent OS 7 and RHEL 7.4 - if (($HOST_OSNAME eq "\"centos\"" and $HOST_OSVER eq "\"7\"") or ($HOST_OSNAME eq "\"rhel\"" and $HOST_OSVER eq "\"7.4\"")) { - $HIPCXXFLAGS .= " -stdlib=libc++"; - $HIPLDFLAGS .= " -lc++ -lc++abi"; - $setStdLib = 1; - } $HIPCXXFLAGS .= " -I$HIP_PATH/include/hip/hcc_detail/cuda"; $HIPCXXFLAGS .= " -I$HSA_PATH/include";