Skip to content

Commit ab6db98

Browse files
committed
fixup! hopefully fix build on windows/macos
1 parent c922850 commit ab6db98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/machine.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,7 @@ impl<'tcx> MiriMachine<'tcx> {
743743
// undefined behaviour in Miri itself!
744744
(
745745
unsafe {
746+
#[cfg(all(unix, any(target_arch = "x86", target_arch = "x86_64")))]
746747
discrete_alloc::MachineAlloc::enable();
747748
libloading::Library::new(lib_file_path)
748749
.expect("failed to read specified extern shared object file")

0 commit comments

Comments
 (0)