Skip to content

Commit 7376d09

Browse files
author
Jorge Aparicio
committed
musl: fix linkage of libc
I messed up the logic of the cfg during my rebase of rust-lang#163 😅
1 parent 5863d86 commit 7376d09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ cfg_if! {
135135
if #[cfg(not(stdbuild))] {
136136
// cargo build, don't pull in anything extra as the libstd dep
137137
// already pulls in all libs.
138-
} else if #[cfg(target_env = "musl", not(target_arch = "mips"))] {
138+
} else if #[cfg(all(target_env = "musl", not(target_arch = "mips")))] {
139139
#[link(name = "c", kind = "static")]
140140
extern {}
141141
} else if #[cfg(target_os = "emscripten")] {

0 commit comments

Comments
 (0)