Skip to content

Commit

Permalink
windows-gnu: Fix minor code formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Doekin committed Jan 5, 2025
1 parent 8c45e6a commit 9e640f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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] <arch><sub>-<os>-<abi> see the targets command
Expand Down Expand Up @@ -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| {
Expand Down

0 comments on commit 9e640f0

Please sign in to comment.