From a90310162d06167f6a0fb817be6c01e1e0d1794f 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 --- bin/hipcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hipcc b/bin/hipcc index 1eda99b936..6c8dc20597 100755 --- a/bin/hipcc +++ b/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') {