diff --git a/src/unix/mod.rs b/src/unix/mod.rs index fc19241d5c7ba0906f8059c3eb8dd102cf5cb55a..1d687161de2251c6cc18ba2b5628c08734e5e588 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -277,8 +277,11 @@ cfg_if! { // cargo build, don't pull in anything extra as the libstd dep // already pulls in all libs. } else if #[cfg(target_env = "musl")] { - #[cfg_attr(feature = "stdbuild", link(name = "c", kind = "static", cfg(target_feature = "crt-static")))] - #[cfg_attr(feature = "stdbuild", link(name = "c", cfg(not(target_feature = "crt-static"))))] + #[cfg_attr(feature = "stdbuild", + link(name = "c", kind = "static", + cfg(target_feature = "crt-static")))] + #[cfg_attr(feature = "stdbuild", + link(name = "c", cfg(not(target_feature = "crt-static"))))] extern {} } else if #[cfg(target_os = "emscripten")] { #[link(name = "c")]