fix of HIPCC on libc++ option on HCC path

Change-Id: Ie0d3213a165fa13f033b777b490eb60b980d02da


[ROCm/hip commit: b7fcdc6121]
This commit is contained in:
pensun
2016-09-26 14:39:20 -05:00
parent f80ea5aa78
commit cf56754431
+2 -2
View File
@@ -225,12 +225,12 @@ foreach $arg (@ARGV)
$needLDFLAGS = 1;
}
if($arg eq '-stdlib=libc++' and $setStdLib eq 0)
if(($arg eq '-stdlib=libc++') and ($setStdLib eq 0))
{
$HIPCXXFLAGS .= " -stdlib=libc++";
$setStdLib = 1;
}
if($arg eq '-stdlib=libstdc++' and $setStdLib eq 0)
if(($arg eq '-stdlib=libstdc++') and ($setStdLib eq 0))
{
$HIPCXXFLAGS .= " -stdlib=libstdc++";
$setStdLib = 1;