authorgravatar for redj@users.noreply.github.comredj <redj@users.noreply.github.com> 2020-10-09 23:09:36-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2020-10-09 23:09:36-04:00
logc0b2813e0468586faee5bf3ee7583afad53d771a
tree5446be0e6010fc4bc2336ff4c6e4537ff8c5c592
parent4053b95d8e2dea661ff7b1dfdb4a9aa32d08db14
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

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.

1 files changed, 2 insertions(+), 1 deletions(-)

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