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 committed Nov 1, 2024
1 parent 81f0cd3 commit 66e3665
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 @@ -389,8 +389,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 66e3665

Please sign in to comment.