Skip to content

Commit c9cca33

Browse files
committed
Fix windows compilation
1 parent 4e6d60c commit c9cca33

File tree

1 file changed

+2
-1
lines changed
  • src/test/run-make-fulldeps/foreign-rust-exceptions

1 file changed

+2
-1
lines changed

src/test/run-make-fulldeps/foreign-rust-exceptions/foo.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![feature(c_unwind)]
22

3-
#[link(name = "bar")]
3+
#[cfg_attr(not(windows), link(name = "bar"))]
4+
#[cfg_attr(windows, link(name = "bar.dll"))]
45
extern "C-unwind" {
56
fn panic();
67
}

0 commit comments

Comments
 (0)