zig icon indicating copy to clipboard operation
zig copied to clipboard

zig ld: handle -v linker arg

Open aikawayataro opened this issue 1 year ago • 1 comments

The "-v" argument is the same as "--version", but the linker should not exit after the version is printed. CMake passes this argument during ABI info detection, and currently zig cc fails because this flag is not supported.

Fixes #20493

aikawayataro avatar Jul 06 '24 02:07 aikawayataro

The "-v" argument is the same as "--version", but the linker should not exit after the version is printed.

Verified this behavior with GNU ld 2.41.

alexrp avatar Jul 21 '24 11:07 alexrp

cc @kubkon (also needs approval to run CI)

alexrp avatar Jul 30 '24 22:07 alexrp

Thanks!

andrewrk avatar Aug 07 '24 20:08 andrewrk