update process_headers.zig for latest zig

This commit is contained in:
Andrew Kelley 2019-08-30 15:01:37 -04:00
parent d9fed5cdfd
commit 37ef490fc6
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -585,10 +585,10 @@ pub fn main() !void {
var sub_path: []const []const u8 = undefined;
switch (vendor) {
.musl => {
sub_path = [_][]const u8{ search_path, libc_target.name, "usr", "local", "musl", "include" };
sub_path = &[_][]const u8{ search_path, libc_target.name, "usr", "local", "musl", "include" };
},
.glibc => {
sub_path = [_][]const u8{ search_path, libc_target.name, "usr", "include" };
sub_path = &[_][]const u8{ search_path, libc_target.name, "usr", "include" };
},
}
const target_include_dir = try std.fs.path.join(allocator, sub_path);