mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
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.
This commit is contained in:
parent
4053b95d8e
commit
c0b2813e04
@ -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 {
|
fn usageAndExit(file: fs.File, arg0: []const u8, code: u8) noreturn {
|
||||||
file.outStream().print(
|
file.outStream().print(
|
||||||
\\Usage: {} /path/to/llvm-tblgen /path/to/git/llvm/llvm-project
|
\\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);
|
, .{arg0}) catch std.process.exit(1);
|
||||||
std.process.exit(code);
|
std.process.exit(code);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user