Let hipcc handle obj files in linker response file for hip-clang

If obj files in linker response file contains device code, pass them to hip-clang, otherwise keep them in the linker
response file.


[ROCm/hip commit: 1587b18a91]
Bu işleme şunda yer alıyor:
Yaxun Sam Liu
2018-08-22 15:42:54 -04:00
ebeveyn 489b696bae
işleme ab2445e972
+9
Dosyayı Görüntüle
@@ -453,6 +453,15 @@ foreach $arg (@ARGV)
system("cd $tmpdir; ar c $libBaseName $realObjs");
print $out "$tmpdir/$libBaseName\n";
}
} elsif ($line =~ m/\.o$/) {
my $fileType = `file $line`;
my $isObj = ($fileType =~ m/ELF/ or $fileType =~ m/COFF/);
if ($isObj) {
print $out "$line\n";
} else {
push (@inputs, $line);
$new_arg = "$new_arg $line";
}
} else {
print $out "$line\n";
}