Zig Version
0.12.0
Steps to Reproduce and Observed Behavior
Please forgive my presumptuous question. But I don't know that is this by designed or just not in schedule, and I'm not sure where to ask.
Here is the issue, I'm using zig cc in bazel as hermetic cc toolchain to compiling cgo program and it fails with unsupported linker arg. (ref: uber/hermetic_cc_toolchain#186)
I did some research, and I can reproduce this issue by run zig cc manually:
- writing a
hello world c program, and then save it into main.c;
- compiling with args
zig cc main.c -Wl,--unresolved-symbols=ignore-in-object-files, the linker will complain error: unsupported linker arg: --unresolved-symbols.
I also tried clang and gcc with the same building arguments, and they work well.
Expected Behavior
zig cc can support link args --unresolved-symbols.
Zig Version
0.12.0
Steps to Reproduce and Observed Behavior
Please forgive my presumptuous question. But I don't know that is this by designed or just not in schedule, and I'm not sure where to ask.
Here is the issue, I'm using
zig ccin bazel as hermetic cc toolchain to compilingcgoprogram and it fails withunsupported linker arg. (ref: uber/hermetic_cc_toolchain#186)I did some research, and I can reproduce this issue by run
zig ccmanually:hello worldc program, and then save it intomain.c;zig cc main.c -Wl,--unresolved-symbols=ignore-in-object-files, the linker will complainerror: unsupported linker arg: --unresolved-symbols.I also tried
clangandgccwith the same building arguments, and they work well.Expected Behavior
zig cccan support link args--unresolved-symbols.