zig icon indicating copy to clipboard operation
zig copied to clipboard

Tier 1 Support for x86_64-dragonfly

Open nektro opened this issue 5 years ago • 4 comments

https://www.dragonflybsd.org/

nektro avatar Nov 18 '20 10:11 nektro

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

jedisct1 avatar Nov 18 '20 10:11 jedisct1

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?

daurnimator avatar Nov 18 '20 11:11 daurnimator

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

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

nektro avatar Nov 18 '20 11:11 nektro

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

tse-gratis avatar Nov 19 '20 15:11 tse-gratis