NativeTargetInfo.detect() no longer takes an Allocator param (#637)

see 3ee01c14ee
This commit is contained in:
nullptrdevs 2022-09-09 18:06:01 -07:00 committed by GitHub
parent 0428b970b1
commit 440fd215ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,7 @@ pub fn translate(allocator: std.mem.Allocator, config: Config, include_dirs: []c
};
const base_include_dirs = blk: {
const target_info = std.zig.system.NativeTargetInfo.detect(allocator, .{}) catch break :blk null;
const target_info = std.zig.system.NativeTargetInfo.detect(.{}) catch break :blk null;
var native_paths = std.zig.system.NativePaths.detect(allocator, target_info) catch break :blk null;
defer native_paths.deinit();