Skip to content

Commit

Permalink
fix target os check
Browse files Browse the repository at this point in the history
  • Loading branch information
Pointerbender committed Dec 8, 2022
1 parent f01d2bf commit 9bd4f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shims/unix/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
// (Technically we do not support *not* setting this flag, but we ignore that.)
mirror |= o_cloexec;
}
if cfg!(target_os = "linux") {
if this.tcx.sess.target.os == "linux" {
let o_tmpfile = this.eval_libc_i32("O_TMPFILE")?;
if flag & o_tmpfile != 0 {
// if the flag contains `O_TMPFILE` then we return a graceful error
Expand Down

0 comments on commit 9bd4f6b

Please sign in to comment.