SWDEV-326661 - hipcc/hipconfig to use return value from pl scripts. (#2584)

On Windows build failures were ignored becasue hipcc script ignored the output of hipcc.pl
Also disables catch2 deviceLib testset on Windows due to linking issue.
This makes sure that we have a baseline of no build failures on Windows

Change-Id: I007a2a47e69ce1ae69e5569bbef4c63a636110ee
This commit is contained in:
ROCm CI Service Account
2022-04-01 05:38:23 +05:30
committed by GitHub
parent d662c451d1
commit 3cccb105f6
3 changed files with 43 additions and 11 deletions
+21 -5
View File
@@ -22,7 +22,6 @@
# Need perl > 5.10 to use logic-defined or
use 5.006; use v5.10.1;
use strict;
use warnings;
use File::Basename;
@@ -35,13 +34,30 @@ my $SCRIPT_DIR=dirname(__FILE__);
if ($HIPCC_USE_PERL_SCRIPT) {
#Invoke hipcc.pl
my $HIPCC_PERL=catfile($SCRIPT_DIR, '/hipcc.pl');
exec($^X, $HIPCC_PERL, @ARGV);
system("$^X $HIPCC_PERL @ARGV");
} else {
#Invoke hipcc.bin
my $HIPCC_BIN=catfile($SCRIPT_DIR, '/hipcc.bin');
$isWindows = ($^O eq 'MSWin32' or $^O eq 'msys');
$BIN_NAME="/hipcc.bin";
if ($isWindows) {
$BIN_NAME="/hipcc.bin.exe";
}
my $HIPCC_BIN=catfile($SCRIPT_DIR, $BIN_NAME);
if ( -e $HIPCC_BIN ) {
exec($HIPCC_BIN, @ARGV);
#Invoke hipcc.bin
my $output = qx($HIPCC_BIN @ARGV);
print ("$output\n");
} else {
print "hipcc.bin not present; Install HIPCC binaries before proceeding";
exit(-1);
}
}
if ($? == -1) {
exit($?);
}
elsif ($? & 127) {
exit($?);
}
else {
$CMD_EXIT_CODE = $? >> 8;
}
exit($CMD_EXIT_CODE);