Skip to content

Commit

Permalink
disable polling_no_io_safety for nightly
Browse files Browse the repository at this point in the history
work-around for
smol-rs#38
breaking namada tooling build with nightly 2022-05-20
  • Loading branch information
tzemanovic committed Sep 20, 2022
1 parent d32e79b commit 02a6557
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ log = "0.4.11"

[build-dependencies]
autocfg = "1"
rustversion = "1.0.9"

[target.'cfg(any(unix, target_os = "fuchsia", target_os = "vxworks"))'.dependencies]
libc = "0.2.77"
Expand Down
3 changes: 2 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ fn main() {
// allows us to treat the current Rust version as the
// latest stable version, for when version information
// isn't available.
if !cfg.probe_rustc_version(1, 63) {
let is_nightly = rustversion::cfg!(nightly);
if !cfg.probe_rustc_version(1, 63) || is_nightly {
autocfg::emit("polling_no_io_safety");
}
}

0 comments on commit 02a6557

Please sign in to comment.