From cf567544311dbdfd27892e3fef9f53dd06c65562 Mon Sep 17 00:00:00 2001 From: pensun Date: Mon, 26 Sep 2016 14:39:20 -0500 Subject: [PATCH] fix of HIPCC on libc++ option on HCC path Change-Id: Ie0d3213a165fa13f033b777b490eb60b980d02da [ROCm/hip commit: b7fcdc6121b4a9c6b9ce5fae57959b8103429d57] --- projects/hip/bin/hipcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip/bin/hipcc b/projects/hip/bin/hipcc index 8a8a1715da..4c4a0dd714 100755 --- a/projects/hip/bin/hipcc +++ b/projects/hip/bin/hipcc @@ -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;