Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Replace custom platform identifiers with target triples

Đang mở
#1,431 0 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/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ệ
cpp
Lĩnh vực
build-system

Hướng nghiên cứu

Start by tracing where hxcpp defines and consumes BINDIR names, then inspect how object output directories are selected. The issue does not name files or tests; first compare the existing platform identifiers with the proposed triples and check the corresponding Neko handling. Done means choosing a canonical triple form, updating both projects, and scheduling the breaking change for a major release.

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

Mô tả

Currently hxcpp uses BINDIR names inherited from neko, e.g.:

  • Windows - windows x86 32-bit
  • Windows64 - windows x86 64-bit
  • WindowsArm64 - windows arm64

These have some problems. With Arm getting more popular as an architecture for general computing, it is getting less obvious that 64 implies x86 64-bit, and definitely that no suffix implies x86 32-bit. The other problem is that it doesn't differentiate between abis, so for example MSVC and mingw binaries (which might be unsafe to mix) end up in the same directory.

This would be solved by target triples, e.g.:

  • i386-pc-windows-msvc
  • x86_64-pc-windows-msvc
  • aarch64-pc-windows-msvc

They might also be useful when picking names for object output directories, as those are a bit of a mess too now.

However, we would have to pick some canonical form of the triples because different toolchains sometimes chose to lay them out different (e.g. -pc might be omitted, or sometimes architectures might have different names, like i686 vs i386).

This would be a breaking change so it would have to be in a major release. Some corresponding changes would probably have to be made in neko too.

Ngôn ngữ chính
C++
Star
330
Fork
232
Merge trung bình
3 ngày 5 giờ
Pull request đã merge (30 ngày)
3

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 HaxeFoundation/hxcpp

Tất cả issue của HaxeFoundation/hxcpp

Issue tương tự

Thêm issue về C++

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.