Skip to content

Commit 4304c22

Browse files
committed
[watchos] Fix broken target arm64_32-apple-watchos
Issue rust-lang#111217
1 parent 74c4821 commit 4304c22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_ssa/src/back/metadata.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub(crate) fn create_object_file(sess: &Session) -> Option<write::Object<'static
101101
let architecture = match &sess.target.arch[..] {
102102
"arm" => Architecture::Arm,
103103
"aarch64" => {
104-
if sess.target.pointer_width == 32 {
104+
if sess.target.pointer_width == 32 && sess.target.os != "watchos" {
105105
Architecture::Aarch64_Ilp32
106106
} else {
107107
Architecture::Aarch64

0 commit comments

Comments
 (0)