| ... | ... | @@ -157,6 +157,8 @@ pub fn main() !void { |
| 157 | 157 | builder.verbose_cc = true; |
| 158 | 158 | } else if (mem.eql(u8, arg, "--verbose-llvm-cpu-features")) { |
| 159 | 159 | builder.verbose_llvm_cpu_features = true; |
| 160 | } else if (mem.eql(u8, arg, "--prominent-compile-errors")) { |
| 161 | builder.prominent_compile_errors = true; |
| 160 | 162 | } else if (mem.eql(u8, arg, "--")) { |
| 161 | 163 | builder.args = argsRest(args, arg_idx); |
| 162 | 164 | break; |
| ... | ... | @@ -214,24 +216,25 @@ fn usage(builder: *Builder, already_ran_build: bool, out_stream: anytype) !void |
| 214 | 216 | try fmt.allocPrint(allocator, "{s} (default)", .{top_level_step.step.name}) |
| 215 | 217 | else |
| 216 | 218 | top_level_step.step.name; |
| 217 | | try out_stream.print(" {s:<27} {s}\n", .{ name, top_level_step.description }); |
| 219 | try out_stream.print(" {s:<28} {s}\n", .{ name, top_level_step.description }); |
| 218 | 220 | } |
| 219 | 221 | |
| 220 | 222 | try out_stream.writeAll( |
| 221 | 223 | \\ |
| 222 | 224 | \\General Options: |
| 223 | | \\ -p, --prefix [path] Override default install prefix |
| 224 | | \\ --prefix-lib-dir [path] Override default library directory path |
| 225 | | \\ --prefix-exe-dir [path] Override default executable directory path |
| 226 | | \\ --prefix-include-dir [path] Override default include directory path |
| 225 | \\ -p, --prefix [path] Override default install prefix |
| 226 | \\ --prefix-lib-dir [path] Override default library directory path |
| 227 | \\ --prefix-exe-dir [path] Override default executable directory path |
| 228 | \\ --prefix-include-dir [path] Override default include directory path |
| 227 | 229 | \\ |
| 228 | | \\ --sysroot [path] Set the system root directory (usually /) |
| 229 | | \\ --search-prefix [path] Add a path to look for binaries, libraries, headers |
| 230 | | \\ --libc [file] Provide a file which specifies libc paths |
| 230 | \\ --sysroot [path] Set the system root directory (usually /) |
| 231 | \\ --search-prefix [path] Add a path to look for binaries, libraries, headers |
| 232 | \\ --libc [file] Provide a file which specifies libc paths |
| 231 | 233 | \\ |
| 232 | | \\ -h, --help Print this help and exit |
| 233 | | \\ --verbose Print commands before executing them |
| 234 | | \\ --color [auto|off|on] Enable or disable colored error messages |
| 234 | \\ -h, --help Print this help and exit |
| 235 | \\ --verbose Print commands before executing them |
| 236 | \\ --color [auto|off|on] Enable or disable colored error messages |
| 237 | \\ --prominent-compile-errors Output compile errors formatted for a human to read |
| 235 | 238 | \\ |
| 236 | 239 | \\Project-Specific Options: |
| 237 | 240 | \\ |
| ... | ... | @@ -246,24 +249,24 @@ fn usage(builder: *Builder, already_ran_build: bool, out_stream: anytype) !void |
| 246 | 249 | @tagName(option.type_id), |
| 247 | 250 | }); |
| 248 | 251 | defer allocator.free(name); |
| 249 | | try out_stream.print("{s:<29} {s}\n", .{ name, option.description }); |
| 252 | try out_stream.print("{s:<30} {s}\n", .{ name, option.description }); |
| 250 | 253 | } |
| 251 | 254 | } |
| 252 | 255 | |
| 253 | 256 | try out_stream.writeAll( |
| 254 | 257 | \\ |
| 255 | 258 | \\Advanced Options: |
| 256 | | \\ --build-file [file] Override path to build.zig |
| 257 | | \\ --cache-dir [path] Override path to zig cache directory |
| 258 | | \\ --zig-lib-dir [arg] Override path to Zig lib directory |
| 259 | | \\ --verbose-tokenize Enable compiler debug output for tokenization |
| 260 | | \\ --verbose-ast Enable compiler debug output for parsing into an AST |
| 261 | | \\ --verbose-link Enable compiler debug output for linking |
| 262 | | \\ --verbose-ir Enable compiler debug output for Zig IR |
| 263 | | \\ --verbose-llvm-ir Enable compiler debug output for LLVM IR |
| 264 | | \\ --verbose-cimport Enable compiler debug output for C imports |
| 265 | | \\ --verbose-cc Enable compiler debug output for C compilation |
| 266 | | \\ --verbose-llvm-cpu-features Enable compiler debug output for LLVM CPU features |
| 259 | \\ --build-file [file] Override path to build.zig |
| 260 | \\ --cache-dir [path] Override path to zig cache directory |
| 261 | \\ --zig-lib-dir [arg] Override path to Zig lib directory |
| 262 | \\ --verbose-tokenize Enable compiler debug output for tokenization |
| 263 | \\ --verbose-ast Enable compiler debug output for parsing into an AST |
| 264 | \\ --verbose-link Enable compiler debug output for linking |
| 265 | \\ --verbose-ir Enable compiler debug output for Zig IR |
| 266 | \\ --verbose-llvm-ir Enable compiler debug output for LLVM IR |
| 267 | \\ --verbose-cimport Enable compiler debug output for C imports |
| 268 | \\ --verbose-cc Enable compiler debug output for C compilation |
| 269 | \\ --verbose-llvm-cpu-features Enable compiler debug output for LLVM CPU features |
| 267 | 270 | \\ |
| 268 | 271 | ); |
| 269 | 272 | } |