From 0be6a93b9f0a154111bbb0c978c4a453ccba04e7 Mon Sep 17 00:00:00 2001 From: leo60228 Date: Fri, 17 Jul 2020 22:24:20 -0400 Subject: [PATCH] Disable libbacktrace on libnx --- crates/backtrace-sys/build.rs | 3 ++- src/symbolize/mod.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/backtrace-sys/build.rs b/crates/backtrace-sys/build.rs index cddfab701..e861399d8 100644 --- a/crates/backtrace-sys/build.rs +++ b/crates/backtrace-sys/build.rs @@ -14,7 +14,8 @@ fn main() { target.contains("hermit") || target.contains("wasm32") || target.contains("fuchsia") || - target.contains("uclibc") + target.contains("uclibc") || + target.contains("libnx") { println!("cargo:rustc-cfg=empty"); return; diff --git a/src/symbolize/mod.rs b/src/symbolize/mod.rs index c20dbc62b..a5cde993d 100644 --- a/src/symbolize/mod.rs +++ b/src/symbolize/mod.rs @@ -473,6 +473,7 @@ cfg_if::cfg_if! { not(target_os = "fuchsia"), not(target_os = "emscripten"), not(target_env = "uclibc"), + not(target_env = "libnx"), ))] { mod libbacktrace; use self::libbacktrace::resolve as resolve_imp;