Skip to content

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

Closed
@andrewrk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-macosupstreamAn 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