From f7e32591238de685d302a3dd1f2d9904448200e2 Mon Sep 17 00:00:00 2001 From: Anusha GodavarthySurya Date: Wed, 26 May 2021 10:25:57 -0700 Subject: [PATCH] SWDEV-288065 - allow hipcc to recognize .C files Change-Id: I0ec884eb6e083e823cf27ca1251c354a7f3b744c [ROCm/hip commit: 093af3cf25460ce8811cec937c2b795d595189e4] --- projects/hip/bin/hipcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/bin/hipcc b/projects/hip/bin/hipcc index 7e5faeafd8..55460fa8a3 100755 --- a/projects/hip/bin/hipcc +++ b/projects/hip/bin/hipcc @@ -552,7 +552,7 @@ foreach $arg (@ARGV) $hasC = 1; $needCFLAGS = 1; $toolArgs .= " -x c"; - } elsif (($arg =~ /\.cpp$/) or ($arg =~ /\.cxx$/) or ($arg =~ /\.cc$/) ) { + } elsif (($arg =~ /\.cpp$/) or ($arg =~ /\.cxx$/) or ($arg =~ /\.cc$/) or ($arg =~ /\.C$/)) { $needCXXFLAGS = 1; if ($HIP_COMPILE_CXX_AS_HIP eq '0' or $HIP_PLATFORM ne "amd") { $hasCXX = 1;