mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 04:08:40 +00:00
Fix windows compilation
This commit is contained in:
parent
4e6d60c837
commit
c9cca33e85
@ -1,6 +1,7 @@
|
|||||||
#![feature(c_unwind)]
|
#![feature(c_unwind)]
|
||||||
|
|
||||||
#[link(name = "bar")]
|
#[cfg_attr(not(windows), link(name = "bar"))]
|
||||||
|
#[cfg_attr(windows, link(name = "bar.dll"))]
|
||||||
extern "C-unwind" {
|
extern "C-unwind" {
|
||||||
fn panic();
|
fn panic();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user