From 30bb481ba9db92429204944e6b8f2790a76234a1 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 10 Jul 2018 07:14:36 -0700 Subject: [PATCH] Fix a #[cfg] attribute It looks like this was a mistake of #930 but should be easy to fix! --- 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 6360e1565f5bc..7c5f4e6b4b7d5 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -310,7 +310,7 @@ cfg_if! { // 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. - #[cfg_attr(feature = "stdbuild", target_vendor = "rumprun")] + #[cfg_attr(feature = "stdbuild", cfg(target_vendor = "rumprun"))] #[link(name = "m")] extern {} } else if #[cfg(any(target_os = "macos",