Skip to content

【Zig 日报】Zig master 可以交叉编译到 FreeBSD 14 #197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jiacai2050 opened this issue May 19, 2025 · 2 comments
Open

【Zig 日报】Zig master 可以交叉编译到 FreeBSD 14 #197

jiacai2050 opened this issue May 19, 2025 · 2 comments
Labels
日报 daily report

Comments

@jiacai2050
Copy link
Member

zig build-exe test.zig -target aarch64-freebsd.14.0
  1. Zig 0.15.0-dev 为 FreeBSD 14 提供了所有系统头文件、libc 头文件和 libc 存根库。
  2. Zig 现在允许交叉编译,目标平台为所有 FreeBSD 14.x 支持的平台。
  3. 使用时需要指定 freebsd.14.0 或更高版本,因为默认目标是 freebsd.13,而包含的 libc 适用于 14 或更高版本。

https://ziggit.dev/t/latest-zig-from-master-can-cross-compile-to-freebsd-14/10081

加入我们

Zig 中文社区是一个开放的组织,我们致力于推广 Zig 在中文群体中的使用,有多种方式可以参与进来:

  1. 供稿,分享自己使用 Zig 的心得
  2. 改进 ZigCC 组织下的开源项目
  3. 加入微信群
@jiacai2050 jiacai2050 added the 日报 daily report label May 19, 2025
@jiacai2050
Copy link
Member Author

Image
Image

@jiacai2050
Copy link
Member Author

NetBSD also get supported.
ziglang/zig#23913

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
日报 daily report
Projects
None yet
Development

No branches or pull requests

1 participant