ziglang / zig

General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
https://ziglang.org
MIT License
33.44k stars 2.44k forks source link

Tier 1 Support for x86_64-dragonfly #7149

Open nektro opened 3 years ago

nektro commented 3 years ago

https://www.dragonflybsd.org/

jedisct1 commented 3 years ago

Zig developers are very likely to already know what Solaris, Fuchsia, DragonflyBSD, etc. are and how to access these projects websites :)

daurnimator commented 3 years ago

Zig did support DragonflyBSD at least a little since #3562. It appears that it has regressed.

With the patch:

--- a/src/target.zig
+++ b/src/target.zig
@@ -139,6 +139,7 @@ pub fn libcNeedsLibUnwind(target: std.Target) bool {
         .watchos,
         .tvos,
         .freestanding,
+        .dragonfly,
         => false,

         .windows => target.abi != .msvc,

I'm able to get a bit further to error: LibCInstallationNotAvailable; which is going to be because I'm not on a dragonflybsd host and we don't ship dragonflybsd libc headers (yet).

@tse-gratis are you interested in trying to improve support still?

nektro commented 3 years ago

we don't ship dragonflybsd libc headers (yet).

I believe this is them here: https://gitweb.dragonflybsd.org/dragonfly.git/tree/HEAD:/include

tse-gratis commented 3 years ago

Sorry, I'm not going to be working on this