From a2e61f597ee8ce308ea2c3247bb55e90d243e315 Mon Sep 17 00:00:00 2001 From: David Rohr Date: Wed, 7 Aug 2019 19:11:12 +0200 Subject: [PATCH] Treat .cxx files like .cpp files [ROCm/hip commit: a90310162d06167f6a0fb817be6c01e1e0d1794f] --- 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 1eda99b936..6c8dc20597 100755 --- a/projects/hip/bin/hipcc +++ b/projects/hip/bin/hipcc @@ -624,7 +624,7 @@ foreach $arg (@ARGV) #print "O: <$arg>\n"; } else { # input files and libraries - if (($arg =~ /\.cpp$/) or ($arg =~ /\.c$/) or ($arg =~ /\.cc$/) ) { + if (($arg =~ /\.cpp$/) or ($arg =~ /\.cxx$/) or ($arg =~ /\.c$/) or ($arg =~ /\.cc$/) ) { $hasC = 1; $needCXXFLAGS = 1; if ($HIP_PLATFORM eq 'clang') {