Merge pull request #642 from ROCm-Developer-Tools/handle-obj
Let hipcc handle obj files in linker response file for hip-clang
[ROCm/clr commit: ac7f16613d]
Этот коммит содержится в:
@@ -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";
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user