From 5c95d8d03bbbc7e350f3dd1980bdc4868ebc6a15 Mon Sep 17 00:00:00 2001 From: gnzlbg <gonzalobg88@gmail.com> Date: Wed, 28 Feb 2018 08:34:12 +0100 Subject: [PATCH] wrap target_vendor with stdbuild --- src/unix/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 1d687161..8aee47aa 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -286,7 +286,7 @@ cfg_if! { } else if #[cfg(target_os = "emscripten")] { #[link(name = "c")] extern {} - } else if #[cfg(all(target_os = "netbsd", target_vendor = "rumprun"))] { + } else if #[cfg(all(target_os = "netbsd", cfg_attr(feature = "stdbuild", target_vendor = "rumprun")))] { // Since we don't use -nodefaultlibs on Rumprun, libc is always pulled // in automatically by the linker. We avoid passing it explicitly, as it // causes some versions of binutils to crash with an assertion failure. -- GitLab