Skip to content

zig cc silently ignores -fuse-ld= option #18357

@jiridanek

Description

@jiridanek

Zig Version

0.11.0

Steps to Reproduce and Observed Behavior

This is a follow-up to

First issue wants to simply opt out from zig cc for linking to workaround a missing linker argument (and that is also my original desire, my issue is #18356)

The second issue mentions something about cgo, which I admit I don't really understand.

So far, from what I was able to find in GitHub issues, the discussion about the missing/uneffective argument went like this

Quick question: Have you considered adding something like -fuse-ld=/path/to/your/linker, which is supported by clang. This could be useful for using non-standard linkers in case it is needed.

This is a big topic, too big to answer as a quick question

Expected Behavior

I am able to pick my own linker and ignore the zig cc's.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions