summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-07-10 14:16:22 +0000
committerbors <bors@rust-lang.org>2018-07-10 14:16:22 +0000
commitab6355021e98b958ca2c28801a791eb55183919b (patch)
tree534db7eaabfd00a7768d3950932bfd9615c21833
parent37e3a22feb3d75695ebfd1dd63e0e27c46e62120 (diff)
parent30bb481ba9db92429204944e6b8f2790a76234a1 (diff)
downloadrust-libc-ab6355021e98b958ca2c28801a791eb55183919b.tar.gz
Auto merge of #1037 - alexcrichton:fix, r=alexcrichton
Fix a #[cfg] attribute It looks like this was a mistake of #930 but should be easy to fix!
-rw-r--r--src/unix/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs
index 6360e1565f..7c5f4e6b4b 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",