Zig Version
0.11.0
Steps to Reproduce and Observed Behavior
then add the following to build.zig:
and get the verbose linker command line:
Observed behavior: -export_dynamic is nowhere to be seen in the ld command line.
FWIW, I found this old PR that states: "(right now ZigLLVM_MachO sends -export_dynamic ..."
#4835
Expected Behavior
Expected to see -export_dynamic passed to ld in the command line.
(Note that the Mach-O ld linker option uses "single-dash and underscore", as opposed to GNU's "double-dash and hyphen", i.e., -export_dynamic, as opposed to --export-dynamic.
Zig Version
0.11.0
Steps to Reproduce and Observed Behavior
then add the following to
build.zig:and get the verbose linker command line:
Observed behavior:
-export_dynamicis nowhere to be seen in theldcommand line.FWIW, I found this old PR that states: "(right now
ZigLLVM_MachOsends-export_dynamic..."#4835
Expected Behavior
Expected to see
-export_dynamicpassed toldin the command line.(Note that the Mach-O
ldlinker option uses "single-dash and underscore", as opposed to GNU's "double-dash and hyphen", i.e.,-export_dynamic, as opposed to--export-dynamic.