summaryrefslogtreecommitdiff
path: root/src/sys/mod.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-01-25 03:37:44 +0000
committerGitHub <noreply@github.com>2022-01-25 03:37:44 +0000
commit5cd01a1fd7417ee6e16636443965c0a197ff2843 (patch)
treeec06e25f28ac2f989b1af4408d00407b9e548258 /src/sys/mod.rs
parentae2b7b3552f3b800ab0f5e92dad06cd2e7df25e6 (diff)
parent6c4b9133f14d4488dc1b86411568b49e99fbe629 (diff)
downloadnix-5cd01a1fd7417ee6e16636443965c0a197ff2843.zip
Merge #1603
1603: uclibc support r=rtzoeller a=skrap uclibc is a libc alternative (peer to glibc and musl) which is used in low-resource embedded linux applications. It's supported in rust as the `target_env` of several tier 3 targets, but `nix` currently doesn't build. This patch provides a few customizations to get uclibc building. To test: * Get nightly rust * Follow directions for getting a cross toolchain and env setup here: https://github.com/rust-lang/rust/blob/master/src/doc/rustc/src/platform-support/armv7-unknown-linux-uclibceabihf.md Thanks for your consideration! Co-authored-by: Jonah Petri <jonah@petri.us>
Diffstat (limited to 'src/sys/mod.rs')
-rw-r--r--src/sys/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/mod.rs b/src/sys/mod.rs
index 0bd0bc9f..2fd2a698 100644
--- a/src/sys/mod.rs
+++ b/src/sys/mod.rs
@@ -2,7 +2,7 @@
#[cfg(any(target_os = "dragonfly",
target_os = "freebsd",
target_os = "ios",
- target_os = "linux",
+ all(target_os = "linux", not(target_env = "uclibc")),
target_os = "macos",
target_os = "netbsd"))]
feature! {