Skip to content

Document Zig's built-in linker options #9407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,15 @@ const normal_usage =
\\ test Create and run a test build
\\ translate-c Convert C code to Zig code
\\
\\ ar Use Zig as a drop-in archiver
\\ cc Use Zig as a drop-in C compiler
\\ c++ Use Zig as a drop-in C++ compiler
\\ ld.lld Use Zig as a drop-in ELF linker (Linux)
\\ lld-link Use Zig as a drop-in COFF linker (Windows)
\\ wasm-ld Use Zig as a drop-in WebAssembly linker
\\ ar Use Zig as a drop-in archiver
\\ ranlib Use Zig as a drop-in ranlib
\\ dlltool Use Zig as a drop-in dlltool.exe
\\ lib Use Zig as a drop-in lib.exe
\\ ranlib Use Zig as a drop-in ranlib
\\
\\ env Print lib path, std path, cache directory, and version
\\ help Print this help and exit
Expand Down