Skip to content

Conversation

@mikdusan
Copy link
Member

@mikdusan mikdusan commented May 9, 2021

- more support for linux, android, freebsd, netbsd, openbsd, dragonfly
- centralize musl utils; musl logic is no longer intertwined with csu
- fix musl compilation to build crti/crtn for full archs list
- fix openbsd to support `zig build-lib -dynamic`
- initial dragonfly linking success (with a warning)

ancillary:

- fix emutls (openbsd) tests to use `try`

this improves openbsd support to where:

  • Dskip-stage2-tests -Dskip-non-native passes

caveat, for llvm12 on openbsd some prerequisite patches are required:

and initial dragonfly linking now works with this PR. The usual missing std.os bits are ready as a followup-patch not yet submitted, that when applied passes a zig build test.

@mikdusan mikdusan added os-dragonfly DragonFly BSD os-freebsd FreeBSD os-netbsd NetBSD os-openbsd OpenBSD labels May 9, 2021
@mikdusan mikdusan changed the title overhaul crto logic overhaul elf csu (c-runtime startup) logic May 10, 2021
@mikdusan mikdusan force-pushed the crto branch 2 times, most recently from 4eedf01 to cbcb42e Compare May 13, 2021 10:10
- more support for linux, android, freebsd, netbsd, openbsd, dragonfly
- centralize musl utils; musl logic is no longer intertwined with csu
- fix musl compilation to build crti/crtn for full archs list
- fix openbsd to support `zig build-lib -dynamic`
- initial dragonfly linking success (with a warning)

ancillary:

- fix emutls (openbsd) tests to use `try`
Copy link
Member

@andrewrk andrewrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@andrewrk andrewrk merged commit 0f26120 into ziglang:master May 23, 2021
andrewrk added a commit that referenced this pull request May 23, 2021
Also rename musl.archMuslName to musl.archName.

Fixes a merge conflict from #8730 and #8837
mikdusan added a commit to mikdusan/zig that referenced this pull request May 23, 2021
- this was inadvertently made public while iterating on ziglang#8730
andrewrk pushed a commit that referenced this pull request May 23, 2021
- this was inadvertently made public while iterating on #8730
@mikdusan mikdusan deleted the crto branch May 24, 2021 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

os-dragonfly DragonFly BSD os-freebsd FreeBSD os-netbsd NetBSD os-openbsd OpenBSD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants