about summary refs log tree commit diff
path: root/example/mod_bench.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-02-01 10:11:46 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2021-02-01 10:11:46 +0100
commita75f9bc3be1d9488de2d13e4afbf724ffadfc70f (patch)
treecad2e5a8fe6635c92a496921493d5bdc3e28c19f /example/mod_bench.rs
parente67b72de2e9c4de59c68f2ad7f0ab117d2446c9e (diff)
downloadrust-a75f9bc3be1d9488de2d13e4afbf724ffadfc70f.tar.gz
rust-a75f9bc3be1d9488de2d13e4afbf724ffadfc70f.zip
Merge commit 'd556c56f792756dd7cfec742b9f2e07612dc10f4' into sync_cg_clif-2021-02-01
Diffstat (limited to 'example/mod_bench.rs')
-rw-r--r--example/mod_bench.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/example/mod_bench.rs b/example/mod_bench.rs
index bc652213623..152041aa9ed 100644
--- a/example/mod_bench.rs
+++ b/example/mod_bench.rs
@@ -1,7 +1,8 @@
 #![feature(start, box_syntax, core_intrinsics, lang_items)]
 #![no_std]
 
-#[link(name = "c")]
+#[cfg_attr(unix, link(name = "c"))]
+#[cfg_attr(target_env = "msvc", link(name = "msvcrt"))]
 extern {}
 
 #[panic_handler]