We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 022a439 commit 31d430bCopy full SHA for 31d430b
src/unix/mod.rs
@@ -382,8 +382,8 @@ cfg_if! {
382
link(name = "c", cfg(not(target_feature = "crt-static"))))]
383
extern {}
384
} else if #[cfg(target_os = "emscripten")] {
385
- #[link(name = "c")]
386
- extern {}
+ // Don't pass -lc to Emscripten, it breaks. See:
+ // https://github.com/emscripten-core/emscripten/issues/22758
387
} else if #[cfg(all(target_os = "android", feature = "rustc-dep-of-std"))] {
388
#[link(name = "c", kind = "static", modifiers = "-bundle",
389
cfg(target_feature = "crt-static"))]
0 commit comments