Support macOS on Apple Silicon (aarch64-apple-darwin)

Đang mở
#1 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
build-system

Hướng nghiên cứu

Start with crates/hir-ty/src/mir/codegen.rs and trace how the Cranelift ISA and object format are selected; then inspect the harness linker arguments. Check how the existing x86-64 SysV calling convention and symbol naming are handled. Done means the daemon and harness support Apple Silicon macOS, including Mach-O symbols and a linker option that works on Apple's linker.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

rustd only targets x86-64 Linux. The Cranelift ISA is hard-coded to x86_64-unknown-linux-gnu in crates/hir-ty/src/mir/codegen.rs, so neither the daemon nor the harness runs on an Apple Silicon Mac. That leaves out a big share of Rust developers.

Rough scope:

  • Pick the Cranelift ISA from the host triple (aarch64-apple-darwin).
  • Emit Mach-O objects with Apple's _ symbol prefix.
  • Add the AArch64 C calling convention next to the x86-64 SysV one.
  • Replace -Wl,--allow-multiple-definition in the harness. Apple's linker does not support it.
Ngôn ngữ chính
Rust
Star
248
Fork
13
Merge trung bình
7 giờ 52 phút
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DioxusLabs/rustd

Tất cả issue của DioxusLabs/rustd

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.