Skip to content

Commit abf37f7

Browse files
authored
Removing functions non-existant in uclibc (#281)
1 parent abcb093 commit abf37f7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

crates/backtrace-sys/build.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ fn main() {
1212
target.contains("cloudabi") ||
1313
target.contains("hermit") ||
1414
target.contains("wasm32") ||
15-
target.contains("fuchsia")
15+
target.contains("fuchsia") ||
16+
target.contains("uclibc") // not supported for uclibc
1617
// fuchsia uses external out-of-process symbolization
1718
{
1819
println!("cargo:rustc-cfg=empty");

src/symbolize/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -489,14 +489,16 @@ cfg_if::cfg_if! {
489489
} else if #[cfg(all(feature = "libbacktrace",
490490
any(unix, all(windows, not(target_vendor = "uwp"), target_env = "gnu")),
491491
not(target_os = "fuchsia"),
492-
not(target_os = "emscripten")))] {
492+
not(target_os = "emscripten"),
493+
not(target_env = "uclibc")))] {
493494
mod libbacktrace;
494495
use self::libbacktrace::resolve as resolve_imp;
495496
use self::libbacktrace::Symbol as SymbolImp;
496497
unsafe fn clear_symbol_cache_imp() {}
497498
} else if #[cfg(all(unix,
498499
not(target_os = "emscripten"),
499500
not(target_os = "fuchsia"),
501+
not(target_env = "uclibc"),
500502
feature = "dladdr"))] {
501503
mod dladdr_resolve;
502504
use self::dladdr_resolve::resolve as resolve_imp;

0 commit comments

Comments
 (0)