From 5013884d3dcbd338034e6adc583daa870bcadfb0 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Thu, 3 Mar 2016 09:47:37 +0530 Subject: [PATCH] Fix hipcc from trying to compile object files --- bin/hipcc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/hipcc b/bin/hipcc index 29163d7c02..042b6e1f74 100755 --- a/bin/hipcc +++ b/bin/hipcc @@ -130,16 +130,16 @@ 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 =~ /\.c$/) or ($arg =~ /\.cc$/) ) { $hasC = 1; $needCXXFLAGS = 1; } - if (($arg =~ /.cu$/) or ($arg =~ /.cuh$/)) { + if (($arg =~ /\.cu$/) or ($arg =~ /\.cuh$/)) { $hasCU = 1; $needCXXFLAGS = 1; } - if (($arg =~ /hip_hcc.o$/) or ($arg =~ /hip_hcc.cpp/)) { + if (($arg =~ /hip_hcc\.o$/) or ($arg =~ /hip_hcc\.cpp/)) { $needHipHcc = 0; }