Skip to content

Commit

Permalink
Document how miri support works
Browse files Browse the repository at this point in the history
Co-Authored-By: gnzlbg <[email protected]>
  • Loading branch information
lu-zero and gnzlbg committed Sep 6, 2019
1 parent 70446b5 commit e0ab2c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/std_detect/src/detect/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ mod cache;

cfg_if! {
if #[cfg(miri)] {
// When running under miri all target-features that are not enabled at
// compile-time are reported as disabled at run-time.
//
// For features for which `cfg(target_feature)` returns true,
// this run-time detection logic is never called.
#[path = "os/other.rs"]
mod os;
} else if #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] {
Expand Down

0 comments on commit e0ab2c1

Please sign in to comment.