Commit a03c8ef4bf
Changed files (3)
src
src/link/Coff/lld.zig
@@ -261,7 +261,7 @@ pub fn linkWithLLD(self: *Coff, comp: *Compilation, prog_node: *std.Progress.Nod
}
if (self.base.options.module_definition_file) |def| {
- try argv.append(try allocPrint(arena, "-DEF:{s}", .{ def }));
+ try argv.append(try allocPrint(arena, "-DEF:{s}", .{def}));
}
const resolved_subsystem: ?std.Target.SubSystem = blk: {
src/Compilation.zig
@@ -3300,7 +3300,7 @@ fn processOneJob(comp: *Compilation, job: Job) !void {
comp.lockAndSetMiscFailure(
.windows_import_lib,
"unable to generate DLL import .lib file for {s}: {s}",
- .{link_lib, @errorName(err)},
+ .{ link_lib, @errorName(err) },
);
};
},
src/link.zig
@@ -224,7 +224,7 @@ pub const Options = struct {
pdb_source_path: ?[]const u8 = null,
/// (Windows) .def file to specify when linking
- module_definition_file: ?[] const u8 = null,
+ module_definition_file: ?[]const u8 = null,
pub fn effectiveOutputMode(options: Options) std.builtin.OutputMode {
return if (options.use_lld) .Obj else options.output_mode;