forked from OSchip/llvm-project
parent
97d92736f5
commit
40252cecb0
|
@ -223,6 +223,9 @@ sub target_options() {
|
||||||
} elsif ( $operating_system eq "FreeBSD" ) {
|
} elsif ( $operating_system eq "FreeBSD" ) {
|
||||||
# Host OS resembles Linux.
|
# Host OS resembles Linux.
|
||||||
$_host_os = "lin";
|
$_host_os = "lin";
|
||||||
|
} elsif ( $operating_system eq "NetBSD" ) {
|
||||||
|
# Host OS resembles Linux.
|
||||||
|
$_host_os = "lin";
|
||||||
} elsif ( $operating_system eq "Darwin" ) {
|
} elsif ( $operating_system eq "Darwin" ) {
|
||||||
$_host_os = "mac";
|
$_host_os = "mac";
|
||||||
} elsif ( $operating_system eq "MS Windows" ) {
|
} elsif ( $operating_system eq "MS Windows" ) {
|
||||||
|
|
|
@ -139,7 +139,7 @@ $values{ processor } = $values{ machine };
|
||||||
|
|
||||||
# hardware_platform.
|
# hardware_platform.
|
||||||
if ( 0 ) {
|
if ( 0 ) {
|
||||||
} elsif ( $^O eq "linux" or $^O eq "freebsd" ) {
|
} elsif ( $^O eq "linux" or $^O eq "freebsd" or $^O eq "netbsd" ) {
|
||||||
if ( 0 ) {
|
if ( 0 ) {
|
||||||
} elsif ( $values{ machine } =~ m{\Ai[3456]86\z} ) {
|
} elsif ( $values{ machine } =~ m{\Ai[3456]86\z} ) {
|
||||||
$values{ hardware_platform } = "i386";
|
$values{ hardware_platform } = "i386";
|
||||||
|
@ -378,6 +378,8 @@ if ( 0 ) {
|
||||||
$values{ operating_system } = "MS Windows";
|
$values{ operating_system } = "MS Windows";
|
||||||
} elsif ( $values{ kernel_name } =~ m{\AFreeBSD} ) {
|
} elsif ( $values{ kernel_name } =~ m{\AFreeBSD} ) {
|
||||||
$values{ operating_system } = "FreeBSD";
|
$values{ operating_system } = "FreeBSD";
|
||||||
|
} elsif ( $values{ kernel_name } =~ m{\ANetBSD} ) {
|
||||||
|
$values{ operating_system } = "NetBSD";
|
||||||
} else {
|
} else {
|
||||||
die "Unsupported kernel_name (\"$values{ kernel_name }\") returned by POSIX::uname(); stopped";
|
die "Unsupported kernel_name (\"$values{ kernel_name }\") returned by POSIX::uname(); stopped";
|
||||||
}; # if
|
}; # if
|
||||||
|
|
Loading…
Reference in New Issue