I'm not going to release this as is, but I need to weigh my options
This commit is contained in:
parent
dec360f78f
commit
52eedfd378
|
@ -30,6 +30,7 @@ compiletest_rs = { version = "0.3", optional = true }
|
|||
|
||||
[build-dependencies]
|
||||
gcc = { version = "0.3.52", optional = true }
|
||||
rustc_version = { version = "0.2" }
|
||||
|
||||
[dev-dependencies]
|
||||
rustyline = "1.0.0"
|
6
build.rs
6
build.rs
|
@ -1,13 +1,15 @@
|
|||
#[cfg(feature = "builtin-lua")]
|
||||
extern crate gcc;
|
||||
extern crate rustc_version;
|
||||
|
||||
use std::env;
|
||||
|
||||
fn main() {
|
||||
let target_os = env::var("CARGO_CFG_TARGET_OS");
|
||||
let target_family = env::var("CARGO_CFG_TARGET_FAMILY");
|
||||
|
||||
if target_family == Ok("windows".to_string()) {
|
||||
if target_family == Ok("windows".to_string())
|
||||
&& rustc_version::version().unwrap() == rustc_version::Version::parse("1.24.0").unwrap()
|
||||
{
|
||||
// Error handling is completely broken on windows with
|
||||
// https://github.com/rust-lang/rust/pull/46833 merged, and this includes stable rustc
|
||||
// 1.24.0+. `#[unwind]` fixes error handling on windows, but requires nightly! This
|
||||
|
|
Loading…
Reference in New Issue