We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 81f0cd3 + 66e3665 commit 9ab13fdCopy full SHA for 9ab13fd
src/unix/mod.rs
@@ -389,8 +389,8 @@ cfg_if! {
389
link(name = "c", cfg(not(target_feature = "crt-static"))))]
390
extern {}
391
} else if #[cfg(target_os = "emscripten")] {
392
- #[link(name = "c")]
393
- extern {}
+ // Don't pass -lc to Emscripten, it breaks. See:
+ // https://github.com/emscripten-core/emscripten/issues/22758
394
} else if #[cfg(all(target_os = "android", feature = "rustc-dep-of-std"))] {
395
#[link(name = "c", kind = "static", modifiers = "-bundle",
396
cfg(target_feature = "crt-static"))]
0 commit comments