Skip to content

Commit 31d430b

Browse files
hoodmanetgross35
authored andcommitted
1 parent 022a439 commit 31d430b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unix/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ cfg_if! {
382382
link(name = "c", cfg(not(target_feature = "crt-static"))))]
383383
extern {}
384384
} else if #[cfg(target_os = "emscripten")] {
385-
#[link(name = "c")]
386-
extern {}
385+
// Don't pass -lc to Emscripten, it breaks. See:
386+
// https://github.com/emscripten-core/emscripten/issues/22758
387387
} else if #[cfg(all(target_os = "android", feature = "rustc-dep-of-std"))] {
388388
#[link(name = "c", kind = "static", modifiers = "-bundle",
389389
cfg(target_feature = "crt-static"))]

0 commit comments

Comments
 (0)