diff options
| author | Sylvestre Ledru <sylvestre@debian.org> | 2016-12-08 09:22:24 +0000 |
|---|---|---|
| committer | Sylvestre Ledru <sylvestre@debian.org> | 2016-12-08 09:22:24 +0000 |
| commit | cd9d37433743d4518c04ca19ed77a1c8c8acafe6 (patch) | |
| tree | 203640ad71a153d4f68c0b5fd5457d586598988c /openmp/runtime/tools/lib/Uname.pm | |
| parent | 0cc0446ad2264a79d5e4a514946680d5c9cf37b8 (diff) | |
| download | bcm5719-llvm-cd9d37433743d4518c04ca19ed77a1c8c8acafe6.tar.gz bcm5719-llvm-cd9d37433743d4518c04ca19ed77a1c8c8acafe6.zip | |
Support of mips & mips64 for openmprtl
Summary:
Implemented by Dejan Latinovic
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790735 for more more information
Reviewers: AndreyChurbanov, jlpeyton
Subscribers: openmp-commits, mgorny
Differential Revision: https://reviews.llvm.org/D26576
llvm-svn: 289032
Diffstat (limited to 'openmp/runtime/tools/lib/Uname.pm')
| -rw-r--r-- | openmp/runtime/tools/lib/Uname.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openmp/runtime/tools/lib/Uname.pm b/openmp/runtime/tools/lib/Uname.pm index 415070b7d3c..f85e1ee23e5 100644 --- a/openmp/runtime/tools/lib/Uname.pm +++ b/openmp/runtime/tools/lib/Uname.pm @@ -153,6 +153,10 @@ if ( 0 ) { $values{ hardware_platform } = "ppc64"; } elsif ( $values{ machine } =~ m{\Aaarch64\z} ) { $values{ hardware_platform } = "aarch64"; + } elsif ( $values{ machine } =~ m{\Amips64\z} ) { + $values{ hardware_platform } = "mips64"; + } elsif ( $values{ machine } =~ m{\Amips\z} ) { + $values{ hardware_platform } = "mips"; } else { die "Unsupported machine (\"$values{ machine }\") returned by POSIX::uname(); stopped"; }; # if |

