Skip to content

unsupported linker arg: --no-undefined-version #16855

Closed
@DavidZbarsky-at

Description

@DavidZbarsky-at

Zig Version

0.11.0-dev.3886+0c1bfe271

Steps to Reproduce and Observed Behavior

I am using zig as a hermetic toolchain when building C and Rust code (https://github.com/uber/hermetic_cc_toolchain)

It looks as of rust-lang/rust#108017, upstream llvm defaults to passing -undefined-version when it detect lld, which Rustc overrides with --no-undefined-version, which Zig doesn't know about yet. (See https://reviews.llvm.org/D135402 for more details)

Could these two flag be implemented (or at least turn --no-undefined-version into a no-op for now)?

It's a bit complicated to get a reduced repro case so hopefully this is clear enough, but let me know if you really need one.

Expected Behavior

Link my object

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorzig ccZig as a drop-in C compiler feature

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions