Skip to content

Commit

Permalink
Link to msvcrt if not crt-static
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Aug 8, 2024
1 parent 06d09ad commit 67518d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/run-make/fmt-write-bloat/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ use core::fmt;
use core::fmt::Write;

#[cfg_attr(not(target_env = "msvc"), link(name = "c"))]
#[cfg_attr(target_env = "msvc", link(name = "libcmt"))]
#[cfg_attr(all(target_env = "msvc", target_feature = "crt-static"), link(name = "libcmt"))]
#[cfg_attr(all(target_env = "msvc", not(target_feature = "crt-static")), link(name = "msvcrt"))]
extern "C" {}

struct Dummy;
Expand Down

0 comments on commit 67518d0

Please sign in to comment.