--unresolved-symbols seems not work for zig cc #21007
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
linking
zig cc
Zig as a drop-in C compiler feature
Milestone
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 compilingcgo
program 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 cc
manually:hello world
c 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
clang
andgcc
with the same building arguments, and they work well.Expected Behavior
zig cc
can support link args--unresolved-symbols
.The text was updated successfully, but these errors were encountered: