From 9e640f05d8b3149b65621829c5236190afbeed80 Mon Sep 17 00:00:00 2001 From: Chan Lee Date: Sun, 5 Jan 2025 13:53:22 +0800 Subject: [PATCH] windows-gnu: Fix minor code formatting issues --- src/main.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.zig b/src/main.zig index 82ef20f52bd8..10fec66fa751 100644 --- a/src/main.zig +++ b/src/main.zig @@ -473,7 +473,7 @@ const usage_build_generic = \\ -fno-structured-cfg (SPIR-V) force SPIR-V kernels to not use structured control flow \\ -mexec-model=[value] (WASI) Execution model \\ -municode (Windows) Use wmain/wWinMain as entry point - \\ -mwindows (Windows) Specifies a GUI application is to be generated + \\ -mwindows (Windows) Specify that a GUI application is to be generated \\ \\Per-Module Compile Options: \\ -target [name] -- see the targets command @@ -3280,10 +3280,10 @@ fn buildOutputType( fatal("the argument -femit-implib is allowed only when building a Windows DLL", .{}); } } - const default_implib_basename = try if (target.abi.isGnu()) - std.fmt.allocPrint(arena, "lib{s}.dll.a", .{root_name}) + const default_implib_basename = if (target.abi.isGnu()) + try std.fmt.allocPrint(arena, "lib{s}.dll.a", .{root_name}) else - std.fmt.allocPrint(arena, "{s}.lib", .{root_name}); + try std.fmt.allocPrint(arena, "{s}.lib", .{root_name}); var emit_implib_resolved = switch (emit_implib) { .no => Emit.Resolved{ .data = null, .dir = null }, .yes => |p| emit_implib.resolve(default_implib_basename, output_to_cache) catch |err| {