These options are documented to use the short option variant (e.g. -lc) but compiler frontend also support the standard short option (e.g. -l c).
Here is a list, generated by zig test -h | grep -P " \-.\[":
-M[name][=src] Create a module based on the current per-module settings.
-I[dir] Add directory to include search path
-D[macro]=[value] Define C [macro] to [value] (1 if [value] omitted)
-T[script], --script [script] Use a custom linker script
-l[lib], --library [lib] Link against system library (only if actually used)
-L[d], --library-directory [d] Add a directory to the library search path
-F[dir] (Darwin) add search path for frameworks
These options are documented to use the short option variant (e.g.
-lc
) but compiler frontend also support the standard short option (e.g.-l c
).Here is a list, generated by
zig test -h | grep -P " \-.\["
: