Skip to content

cross compiled macos binaries with LLD which depend on TLS fail at runtime #3295

Description

@andrewrk
threadlocal var x: i32 = 1;
test "tls macos cross compile" {
    x += 1;
}
$ ./zig test test.zig
(ok)
$ ./zig test test.zig -target x86_64-macosx
dyld: Symbol not found: __tlv_bootstrap

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-macosmacOSupstreamAn issue with a third party project that Zig uses.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions