Allocgate 2.0 slain (#791)

* Allocgate 2.0 slain

* Tests now compile, but they fail

* Temporary bruteforce
This commit is contained in:
Auguste Rame
2022-12-02 15:14:58 -05:00
committed by GitHub
parent f6f0a0dca5
commit 6ab2c68355
10 changed files with 34 additions and 26 deletions

View File

@@ -152,7 +152,7 @@ pub fn translate(allocator: std.mem.Allocator, config: Config, include_dirs: []c
var native_paths = std.zig.system.NativePaths.detect(allocator, target_info) catch break :blk null;
defer native_paths.deinit();
break :blk native_paths.include_dirs.toOwnedSlice();
break :blk try native_paths.include_dirs.toOwnedSlice();
};
defer if (base_include_dirs) |dirs| {
for (dirs) |path| {