Skip to content

Commit 9bd4f6b

Browse files
committed
fix target os check
1 parent f01d2bf commit 9bd4f6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/unix/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
605605
// (Technically we do not support *not* setting this flag, but we ignore that.)
606606
mirror |= o_cloexec;
607607
}
608-
if cfg!(target_os = "linux") {
608+
if this.tcx.sess.target.os == "linux" {
609609
let o_tmpfile = this.eval_libc_i32("O_TMPFILE")?;
610610
if flag & o_tmpfile != 0 {
611611
// if the flag contains `O_TMPFILE` then we return a graceful error

0 commit comments

Comments
 (0)