-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
zig fails to detect musl as the native C ABI on alpine linux #2084
Copy link
Copy link
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorcontributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.stage1The process of building from source via WebAssembly and the C backend.The process of building from source via WebAssembly and the C backend.
Milestone
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorcontributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.stage1The process of building from source via WebAssembly and the C backend.The process of building from source via WebAssembly and the C backend.
Type
Fields
Give feedbackNo fields configured for issues without a type.
executing
zig targetson alpine linux shows:Instead it should detect that musl is the native C ABI on alpine linux.
Here are my ideas for detecting this:
/usr/bin/env./usr/bin/envor determining its dynamic linker, Zig should conclude that the native C ABI is musl.This only matters really if you use
--library cand in this case you can work around it with-target x86_64-linux-musl.