We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06d09ad commit 67518d0Copy full SHA for 67518d0
tests/run-make/fmt-write-bloat/main.rs
@@ -6,7 +6,8 @@ use core::fmt;
6
use core::fmt::Write;
7
8
#[cfg_attr(not(target_env = "msvc"), link(name = "c"))]
9
-#[cfg_attr(target_env = "msvc", link(name = "libcmt"))]
+#[cfg_attr(all(target_env = "msvc", target_feature = "crt-static"), link(name = "libcmt"))]
10
+#[cfg_attr(all(target_env = "msvc", not(target_feature = "crt-static")), link(name = "msvcrt"))]
11
extern "C" {}
12
13
struct Dummy;
0 commit comments