[Openmp-commits] [openmp] r248203 - Teach the Perl modules about NetBSD.
Joerg Sonnenberger via Openmp-commits
openmp-commits at lists.llvm.org
Mon Sep 21 12:42:05 PDT 2015
Author: joerg
Date: Mon Sep 21 14:42:05 2015
New Revision: 248203
URL: http://llvm.org/viewvc/llvm-project?rev=248203&view=rev
Log:
Teach the Perl modules about NetBSD.
Modified:
openmp/trunk/runtime/tools/lib/Platform.pm
openmp/trunk/runtime/tools/lib/Uname.pm
Modified: openmp/trunk/runtime/tools/lib/Platform.pm
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/tools/lib/Platform.pm?rev=248203&r1=248202&r2=248203&view=diff
==============================================================================
--- openmp/trunk/runtime/tools/lib/Platform.pm (original)
+++ openmp/trunk/runtime/tools/lib/Platform.pm Mon Sep 21 14:42:05 2015
@@ -223,6 +223,9 @@ sub target_options() {
} elsif ( $operating_system eq "FreeBSD" ) {
# Host OS resembles Linux.
$_host_os = "lin";
+ } elsif ( $operating_system eq "NetBSD" ) {
+ # Host OS resembles Linux.
+ $_host_os = "lin";
} elsif ( $operating_system eq "Darwin" ) {
$_host_os = "mac";
} elsif ( $operating_system eq "MS Windows" ) {
Modified: openmp/trunk/runtime/tools/lib/Uname.pm
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/tools/lib/Uname.pm?rev=248203&r1=248202&r2=248203&view=diff
==============================================================================
--- openmp/trunk/runtime/tools/lib/Uname.pm (original)
+++ openmp/trunk/runtime/tools/lib/Uname.pm Mon Sep 21 14:42:05 2015
@@ -139,7 +139,7 @@ $values{ processor } = $values{ machine
# hardware_platform.
if ( 0 ) {
-} elsif ( $^O eq "linux" or $^O eq "freebsd" ) {
+} elsif ( $^O eq "linux" or $^O eq "freebsd" or $^O eq "netbsd" ) {
if ( 0 ) {
} elsif ( $values{ machine } =~ m{\Ai[3456]86\z} ) {
$values{ hardware_platform } = "i386";
@@ -378,6 +378,8 @@ if ( 0 ) {
$values{ operating_system } = "MS Windows";
} elsif ( $values{ kernel_name } =~ m{\AFreeBSD} ) {
$values{ operating_system } = "FreeBSD";
+} elsif ( $values{ kernel_name } =~ m{\ANetBSD} ) {
+ $values{ operating_system } = "NetBSD";
} else {
die "Unsupported kernel_name (\"$values{ kernel_name }\") returned by POSIX::uname(); stopped";
}; # if
More information about the Openmp-commits
mailing list