diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-02-01 10:11:46 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-02-01 10:11:46 +0100 |
| commit | a75f9bc3be1d9488de2d13e4afbf724ffadfc70f (patch) | |
| tree | cad2e5a8fe6635c92a496921493d5bdc3e28c19f /example/mod_bench.rs | |
| parent | e67b72de2e9c4de59c68f2ad7f0ab117d2446c9e (diff) | |
| download | rust-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.rs | 3 |
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] |
