Skip to content

Commit 9ab13fd

Browse files
authored
Merge pull request #4002 from hoodmane/emscripten-dont-pass-lc
Don't pass -lc to Emscripten, it breaks
2 parents 81f0cd3 + 66e3665 commit 9ab13fd

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)