Skip to content

Trick the meson build system into thinking zig rc is rc.exe #23301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/compiler/resinator/cli.zig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub const usage_string_after_command_name =
\\This is necessary when the input path begins with a forward slash.
\\
\\Supported option prefixes are /, -, and --, so e.g. /h, -h, and --h all work.
\\Drop-in compatible with the Microsoft Resource Compiler.
\\
\\Supported Win32 RC Options:
\\ /?, /h Print this help and exit.
Expand Down
3 changes: 2 additions & 1 deletion lib/compiler/resinator/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ pub fn main() !void {
defer options.deinit();

if (options.print_help_and_exit) {
try cli.writeUsage(stderr.writer(), "zig rc");
const stdout = std.io.getStdOut();
try cli.writeUsage(stdout.writer(), "zig rc");
return;
}

Expand Down
Loading