Skip to content

Commit

Permalink
Don't pass -lc to Emscripten, it breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane authored and tgross35 committed Nov 6, 2024
1 parent 022a439 commit 31d430b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,8 @@ cfg_if! {
link(name = "c", cfg(not(target_feature = "crt-static"))))]
extern {}
} else if #[cfg(target_os = "emscripten")] {
#[link(name = "c")]
extern {}
// Don't pass -lc to Emscripten, it breaks. See:
// https://github.com/emscripten-core/emscripten/issues/22758
} else if #[cfg(all(target_os = "android", feature = "rustc-dep-of-std"))] {
#[link(name = "c", kind = "static", modifiers = "-bundle",
cfg(target_feature = "crt-static"))]
Expand Down

0 comments on commit 31d430b

Please sign in to comment.