diff options
| author | Lee Cannon <leecannon@leecannon.xyz> | 2021-10-29 00:37:25 +0100 |
|---|---|---|
| committer | Lee Cannon <leecannon@leecannon.xyz> | 2021-11-30 23:32:47 +0000 |
| commit | 85de022c5671d777f62ddff254a814dab05242fc (patch) | |
| tree | 037f58c4b07d18b80cf48cf74d0f0e8c8866f8f2 /src/mingw.zig | |
| parent | 1e0addcf73ee71d23a41b744995848bcca38e8d3 (diff) | |
| download | zig-85de022c5671d777f62ddff254a814dab05242fc.tar.gz zig-85de022c5671d777f62ddff254a814dab05242fc.zip | |
allocgate: std Allocator interface refactor
Diffstat (limited to 'src/mingw.zig')
| -rw-r--r-- | src/mingw.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mingw.zig b/src/mingw.zig index 8738bcbbcd..b2628553b9 100644 --- a/src/mingw.zig +++ b/src/mingw.zig @@ -252,7 +252,7 @@ pub fn buildCRTFile(comp: *Compilation, crt_file: CRTFile) !void { fn add_cc_args( comp: *Compilation, - arena: *Allocator, + arena: Allocator, args: *std.ArrayList([]const u8), ) error{OutOfMemory}!void { try args.appendSlice(&[_][]const u8{ @@ -428,7 +428,7 @@ pub fn buildImportLib(comp: *Compilation, lib_name: []const u8) !void { } /// This function body is verbose but all it does is test 3 different paths and see if a .def file exists. -fn findDef(comp: *Compilation, allocator: *Allocator, lib_name: []const u8) ![]u8 { +fn findDef(comp: *Compilation, allocator: Allocator, lib_name: []const u8) ![]u8 { const target = comp.getTarget(); const lib_path = switch (target.cpu.arch) { |
