zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit c0b2813e0468586faee5bf3ee7583afad53d771a (tree)
parent 4053b95d8e2dea661ff7b1dfdb4a9aa32d08db14
Author: redj <redj@users.noreply.github.com>
Date:   Fri,  9 Oct 2020 23:09:36 -0400

tools/update_clang_options: add zig run usage example. fix src-self-hosted path. (#6635)

* tools/update_clang_options: fix src-self-hosted path now simply src.

* tools/update_clang_options: add zig run usage example.
Diffstat:
Mtools/update_clang_options.zig | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/update_clang_options.zig b/tools/update_clang_options.zig @@ -601,8 +601,9 @@ fn objectLessThan(context: void, a: *json.ObjectMap, b: *json.ObjectMap) bool { fn usageAndExit(file: fs.File, arg0: []const u8, code: u8) noreturn { file.outStream().print( \\Usage: {} /path/to/llvm-tblgen /path/to/git/llvm/llvm-project + \\Alternative Usage: zig run /path/to/git/zig/tools/update_clang_options.zig -- /path/to/llvm-tblgen /path/to/git/llvm/llvm-project \\ - \\Prints to stdout Zig code which you can use to replace the file src-self-hosted/clang_options_data.zig. + \\Prints to stdout Zig code which you can use to replace the file src/clang_options_data.zig. \\ , .{arg0}) catch std.process.exit(1); std.process.exit(code);