Skip to content

Commit

Permalink
Merge pull request #4002 from hoodmane/emscripten-dont-pass-lc
Browse files Browse the repository at this point in the history
Don't pass -lc to Emscripten, it breaks
  • Loading branch information
tgross35 authored Nov 1, 2024
2 parents 81f0cd3 + 66e3665 commit 9ab13fd
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 9ab13fd

Please sign in to comment.