2
0

Merge pull request #752 from yxsamliu/fix-bundle

Let hipcc handle clang-offload-bundler file in obj format for hip-clang

[ROCm/clr commit: 02a0df641f]
Este cometimento está contido em:
Maneesh Gupta
2018-11-09 06:26:32 +05:30
cometido por GitHub
ascendente a3758b506d 858b71b7bd
cometimento 3d7d3f3f20
+4
Ver ficheiro
@@ -498,6 +498,10 @@ foreach $arg (@ARGV)
$obj = "$tmpdir/$obj";
my $fileType = `file $obj`;
my $isObj = ($fileType =~ m/ELF/ or $fileType =~ m/COFF/);
if ($fileType =~ m/ELF/) {
my $sections = `readelf -e -W $obj`;
$isObj = !($sections =~ m/__CLANG_OFFLOAD_BUNDLE__/);
}
$allIsObj = ($allIsObj and $isObj);
if ($isObj) {
$realObjs = ($realObjs . " " . $obj);