Skip to content

Commit 84597a8

Browse files
committed
Rename to aarch64-unknown-switch-libnx
1 parent b625e06 commit 84597a8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ cfg_if! {
123123

124124
mod vxworks;
125125
pub use vxworks::*;
126-
} else if #[cfg(all(unix, any(not(target_os = "switch"), target_env = "devkita64")))] {
126+
} else if #[cfg(all(unix, any(not(target_os = "switch"), target_env = "libnx")))] {
127127
mod fixed_width_ints;
128128
pub use fixed_width_ints::*;
129129

File renamed without changes.

src/unix/mod.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ cfg_if! {
327327
#[link(name = "root")]
328328
#[link(name = "network")]
329329
extern {}
330-
} else if #[cfg(target_env = "devkita64")] {
330+
} else if #[cfg(target_env = "libnx")] {
331331
#[link(name = "c")]
332332
#[link(name = "m")]
333333
extern {}
@@ -1477,7 +1477,7 @@ extern "C" {
14771477
}
14781478

14791479
cfg_if! {
1480-
if #[cfg(not(target_env = "devkita64"))] {
1480+
if #[cfg(not(target_env = "libnx"))] {
14811481
extern "C" {
14821482
pub fn cfgetispeed(termios: *const ::termios) -> ::speed_t;
14831483
pub fn cfgetospeed(termios: *const ::termios) -> ::speed_t;
@@ -1552,7 +1552,7 @@ cfg_if! {
15521552
if #[cfg(not(any(
15531553
target_os = "solaris",
15541554
target_os = "illumos",
1555-
target_env = "devkita64"
1555+
target_env = "libnx"
15561556
)))] {
15571557
extern {
15581558
pub fn cfmakeraw(termios: *mut ::termios);
@@ -1566,9 +1566,9 @@ cfg_if! {
15661566
if #[cfg(target_env = "uclibc")] {
15671567
mod uclibc;
15681568
pub use self::uclibc::*;
1569-
} else if #[cfg(target_env = "devkita64")] {
1570-
mod devkita64;
1571-
pub use self::devkita64::*;
1569+
} else if #[cfg(target_env = "libnx")] {
1570+
mod libnx;
1571+
pub use self::libnx::*;
15721572
} else if #[cfg(target_env = "newlib")] {
15731573
mod newlib;
15741574
pub use self::newlib::*;

0 commit comments

Comments
 (0)