Skip to content

Commit d162154

Browse files
committed
Only link libc on *nix platforms
1 parent 06d09ad commit d162154

File tree

1 file changed

+1
-2
lines changed
  • tests/run-make/fmt-write-bloat

1 file changed

+1
-2
lines changed

tests/run-make/fmt-write-bloat/main.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
use core::fmt;
66
use core::fmt::Write;
77

8-
#[cfg_attr(not(target_env = "msvc"), link(name = "c"))]
9-
#[cfg_attr(target_env = "msvc", link(name = "libcmt"))]
8+
#[cfg_attr(not(windows), link(name = "c"))]
109
extern "C" {}
1110

1211
struct Dummy;

0 commit comments

Comments
 (0)