Skip to content

Commit

Permalink
Fix windows compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 committed Oct 23, 2022
1 parent 4e6d60c commit c9cca33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/run-make-fulldeps/foreign-rust-exceptions/foo.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![feature(c_unwind)]

#[link(name = "bar")]
#[cfg_attr(not(windows), link(name = "bar"))]
#[cfg_attr(windows, link(name = "bar.dll"))]
extern "C-unwind" {
fn panic();
}
Expand Down

0 comments on commit c9cca33

Please sign in to comment.