Skip to content

Commit e2854b3

Browse files
committed
libc: Add necessary libraries for MSVC
These libs seem to be required by the standard library at least to link successfully!
1 parent d97b4af commit e2854b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/liblibc/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ extern {}
150150
#[link(name = "c", kind = "static")]
151151
extern {}
152152

153+
#[cfg(all(windows, target_env = "msvc"))]
154+
#[link(name = "kernel32")]
155+
#[link(name = "shell32")]
156+
#[link(name = "msvcrt")]
157+
extern {}
158+
153159
// libnacl provides functions that require a trip through the IRT to work.
154160
// ie: _exit, mmap, nanosleep, etc. Anything that would otherwise require a trip
155161
// to the kernel.

0 commit comments

Comments
 (0)