summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/tools/lib/Uname.pm
diff options
context:
space:
mode:
Diffstat (limited to 'openmp/runtime/tools/lib/Uname.pm')
-rw-r--r--openmp/runtime/tools/lib/Uname.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/openmp/runtime/tools/lib/Uname.pm b/openmp/runtime/tools/lib/Uname.pm
index 4a5c332d618..a14cb3a6531 100644
--- a/openmp/runtime/tools/lib/Uname.pm
+++ b/openmp/runtime/tools/lib/Uname.pm
@@ -156,6 +156,8 @@ if ( 0 ) {
$values{ hardware_platform } = "mips64";
} elsif ( $values{ machine } =~ m{\Amips\z} ) {
$values{ hardware_platform } = "mips";
+ } elsif ( $values{ machine } =~ m{\Ariscv64\z} ) {
+ $values{ hardware_platform } = "riscv64";
} else {
die "Unsupported machine (\"$values{ machine }\") returned by POSIX::uname(); stopped";
}; # if
OpenPOWER on IntegriCloud