Skip to content

Commit 66e3665

Browse files
committed
1 parent 81f0cd3 commit 66e3665

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unix/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ cfg_if! {
389389
link(name = "c", cfg(not(target_feature = "crt-static"))))]
390390
extern {}
391391
} else if #[cfg(target_os = "emscripten")] {
392-
#[link(name = "c")]
393-
extern {}
392+
// Don't pass -lc to Emscripten, it breaks. See:
393+
// https://github.com/emscripten-core/emscripten/issues/22758
394394
} else if #[cfg(all(target_os = "android", feature = "rustc-dep-of-std"))] {
395395
#[link(name = "c", kind = "static", modifiers = "-bundle",
396396
cfg(target_feature = "crt-static"))]

0 commit comments

Comments
 (0)