Skip to content

Commit d99e11b

Browse files
authored
Rollup merge of #148760 - tamird:avoid-vendor-logic, r=madsmtm
rustc_target: hide TargetOptions::vendor Discussed in rust-lang/rust#148531 (comment). r? `````@bjorn3`````
2 parents c5f79bf + ad2618d commit d99e11b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/machine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ impl<'tcx> MiriMachine<'tcx> {
715715
match target.arch {
716716
Arch::Wasm32 | Arch::Wasm64 => 64 * 1024, // https://webassembly.github.io/spec/core/exec/runtime.html#memory-instances
717717
Arch::AArch64 => {
718-
if target.options.vendor.as_ref() == "apple" {
718+
if target.is_like_darwin {
719719
// No "definitive" source, but see:
720720
// https://www.wwdcnotes.com/notes/wwdc20/10214/
721721
// https://github.com/ziglang/zig/issues/11308 etc.

0 commit comments

Comments
 (0)