zig
zig copied to clipboard
zig ld: handle -v linker arg
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
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.
cc @kubkon (also needs approval to run CI)
Thanks!