From 62ecc57afd49464880ca8578c965276a62dac2c8 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/clr commit: 5bdb9e349cd4ba5ff9ca27f890f067ad1048e29a] --- projects/clr/hipamd/bin/hipcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/clr/hipamd/bin/hipcc b/projects/clr/hipamd/bin/hipcc index 8a8a1715da..4c4a0dd714 100755 --- a/projects/clr/hipamd/bin/hipcc +++ b/projects/clr/hipamd/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;