complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-l enable-cache -d"Output to cache directory"
## Compile options
complete-x-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o target -d"Specify the compilation target"
complete-x-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o mcpu -d"Specify target CPU and feature set"
complete-x-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o mcmodel -a"default tiny small kernel medium large"-d"Limit range of code and data virtual addresses"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o mred-zone -d"Force-enable the \"red-zone\""
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o mno-red-zone -d"Force-disable the \"red-zone\""
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o fomit-frame-pointer -d"Omit the stack frame pointer"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o fno-omit-frame-pointer -d"Store the stack frame pointer"
complete-x-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o mexec-model -d"Execution model (WASI)"
complete-x-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-l name -d"Override root name"
complete-x-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-s O -a"
Debug\t'Optimizations off, safety on (default)'
ReleaseFast\t'Optimizations on, safety off'
ReleaseSafe\t'Optimizations on, safety on'
ReleaseSmall\t'Optimize for small binary, safety off'
" -d "Choose what to optimize for"
complete-x-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-l pkg-begin -d"Make pkg available to import and push current pkg"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-l pkg-end -d"Pop current pkg"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-l main-pkg-path -d"Set the directory of the root package"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o fPIC -d"Force-enable Position Independent Code"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o fno-PIC -d"Force-disable Position Independent Code"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o fPIE -d"Force-enable Position Independent Executable"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o fno-PIE -d"Force-disable Position Independent Executable"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o flto -d"Force-enable Link Time Optimization"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o fno-lto -d"Force-disable Link Time Optimization"
complete-r-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o dirafter -d"Add directory to AFTER include search path"
complete-r-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o isystem -d"Add directory to SYSTEM include search path"
complete-r-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-s I -d"Add directory to include search path"
complete-x-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-s D -d"Define the C macro"
complete-r-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-l libc -d"Provide a file which specifies libc paths"
complete-x-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o cflags -d"Set extra flags for the next positional C source files"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o ffunction-sections -d"Places each function in a separate section"
## Link options
complete-x-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-s l -l library -d"Link against system library (only if actually used)"
complete-x-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o needed-l -l needed-library -d"Link against system library (even if unused)"
complete-r-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-s L -l library-directory -d"Add a directory to the library search path"
complete-r-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-s T -l script -d"Use a custom linker script"
complete-r-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-l version-script -d"Provide a version .map file"
complete-r-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-l dynamic-linker -d"Set the dynamic interpreter path"
complete-r-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-l sysroot -d"Set the system root directory"
complete-x-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-l version -d"Dynamic library semver"
complete-x-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-l entry -d"Set the entrypoint symbol name"
complete-x-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o fsoname -d"Override the default SONAME value"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o fno-soname -d"Disable emitting a SONAME"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o fLLD -d"Force using LLD"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o fno-LLD -d"Prevent using LLD"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o fcompiler-rt -d"Always include compiler-rt symbols"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o fno-compiler-rt -d"Prevent including compiler-rt symbols"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o rdynamic -d"Add all symbols to the dynamic symbol table"
complete-r-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o rpath -d"Add directory to the runtime library search path"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o feach-lib-rpath -d"Ensure adding rpath for each used dynamic library"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o fno-each-lib-rpath -d"Prevent adding rpath for each used dynamic library"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-l eh-frame-hdr -d"Enable C++ exception handling by passing `--eh-frame-hdr` to linker"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-lemit-relocs -d"Enable output of relocation sections for post build tools"
complete-x-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-s z -a"
nodelete\t'Indicate that the object cannot be deleted from a process'
notext\t'Permit read-only relocations in read-only segments'
defs\t'Force a fatal error if any undefined symbols remain'
origin\t'Indicate that the object must have its origin processed'
noexecstack\t'Indicate that the object requires an executable stack'
now\t'Force all relocations to be processed on load'
relro\t'Force all relocations to be resolved and be read-only on load'
" -d "Set linker extension flags"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o dynamic -d"Force output to be dynamically linked"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o static -d"Force output to be statically linked"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-o Bsymbolic -d"Bind global references locally"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-l debug-compile-errors -d"Crash with helpful diagnostics at the first compile error"
complete-c zig -n"__fish_seen_subcommand_from $zig_build_generic_commands"-l debug-link-snapshot -d"Enable dumping of the linker's state in JSON"
complete-x-c zig -n"__fish_seen_subcommand_from fmt"-l color -a"auto off on"-d"Enable/Disable colored error messages"
complete-c zig -n"__fish_seen_subcommand_from fmt"-l stdin -d"Use stdin and stdout for I/O"
complete-c zig -n"__fish_seen_subcommand_from fmt"-l check -d"Check if the input is formatted"
complete-c zig -n"__fish_seen_subcommand_from fmt"-l ast-check -d"Run `zig ast-check` on every file"
complete-c zig -n"__fish_seen_subcommand_from cc c++"-a"(__fish_complete_zig_cc_and_cpp)"
complete-x-c zig -n"__fish_seen_subcommand_from libc"-o target -d"Specify the compilation target"