authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-11-29 16:32:24-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-11-29 16:32:24-07:00
log3fb0cc0a14df149da5a5b69d7c5065ffade8ddb5
tree84fb36be5d8027a52146364262f0e4ca11112a57
parent263f25fea691b0f52aa852909c317a6f27d21cf0

CLI: add missing usage help text


1 files changed, 11 insertions(+), 5 deletions(-)

src/main.zig+11-5
...@@ -280,6 +280,10 @@ const usage_build_generic =...@@ -280,6 +280,10 @@ const usage_build_generic =
280 \\ -fno-valgrind Omit valgrind client requests in debug builds280 \\ -fno-valgrind Omit valgrind client requests in debug builds
281 \\ -fdll-export-fns Mark exported functions as DLL exports (Windows)281 \\ -fdll-export-fns Mark exported functions as DLL exports (Windows)
282 \\ -fno-dll-export-fns Force-disable marking exported functions as DLL exports282 \\ -fno-dll-export-fns Force-disable marking exported functions as DLL exports
283 \\ -fLLVM Force using LLVM as the codegen backend
284 \\ -fno-LLVM Prevent using LLVM as a codegen backend
285 \\ -fClang Force using Clang as the C/C++ compilation backend
286 \\ -fno-Clang Prevent using Clang as the C/C++ compilation backend
283 \\ --strip Omit debug symbols287 \\ --strip Omit debug symbols
284 \\ --single-threaded Code assumes it is only used single-threaded288 \\ --single-threaded Code assumes it is only used single-threaded
285 \\ -ofmt=[mode] Override target object format289 \\ -ofmt=[mode] Override target object format
...@@ -306,8 +310,10 @@ const usage_build_generic =...@@ -306,8 +310,10 @@ const usage_build_generic =
306 \\ --version-script [path] Provide a version .map file310 \\ --version-script [path] Provide a version .map file
307 \\ --dynamic-linker [path] Set the dynamic interpreter path (usually ld.so)311 \\ --dynamic-linker [path] Set the dynamic interpreter path (usually ld.so)
308 \\ --version [ver] Dynamic library semver312 \\ --version [ver] Dynamic library semver
309 \\ -fsoname[=name] (linux) Override the default SONAME value313 \\ -fsoname[=name] (Linux) Override the default SONAME value
310 \\ -fno-soname (linux) Disable emitting a SONAME314 \\ -fno-soname (Linux) Disable emitting a SONAME
315 \\ -fLLD Force using LLD as the linker
316 \\ -fno-LLD Prevent using LLD as the linker
311 \\ -rdynamic Add all symbols to the dynamic symbol table317 \\ -rdynamic Add all symbols to the dynamic symbol table
312 \\ -rpath [path] Add directory to the runtime library search path318 \\ -rpath [path] Add directory to the runtime library search path
313 \\ -feach-lib-rpath Ensure adding rpath for each used dynamic library319 \\ -feach-lib-rpath Ensure adding rpath for each used dynamic library
...@@ -317,11 +323,11 @@ const usage_build_generic =...@@ -317,11 +323,11 @@ const usage_build_generic =
317 \\ -dynamic Force output to be dynamically linked323 \\ -dynamic Force output to be dynamically linked
318 \\ -static Force output to be statically linked324 \\ -static Force output to be statically linked
319 \\ -Bsymbolic Bind global references locally325 \\ -Bsymbolic Bind global references locally
320 \\ --subsystem [subsystem] (windows) /SUBSYSTEM:<subsystem> to the linker\n"326 \\ --subsystem [subsystem] (Windows) /SUBSYSTEM:<subsystem> to the linker\n"
321 \\ --stack [size] Override default stack size327 \\ --stack [size] Override default stack size
322 \\ --image-base [addr] Set base address for executable image328 \\ --image-base [addr] Set base address for executable image
323 \\ -framework [name] (darwin) link against framework329 \\ -framework [name] (Darwin) link against framework
324 \\ -F[dir] (darwin) add search path for frameworks330 \\ -F[dir] (Darwin) add search path for frameworks
325 \\331 \\
326 \\Test Options:332 \\Test Options:
327 \\ --test-filter [text] Skip tests that do not match filter333 \\ --test-filter [text] Skip tests that do not match filter