Fix compile error in addVcpkgPaths

This commit is contained in:
Fabio Arnold 2023-08-02 11:19:05 +02:00 committed by Andrew Kelley
parent 88fb4dab81
commit 31979b1006

View File

@ -1149,7 +1149,7 @@ pub fn addVcpkgPaths(self: *Compile, linkage: Compile.Linkage) !void {
const include_path = b.pathJoin(&.{ root, "installed", triplet, "include" });
errdefer allocator.free(include_path);
try self.include_dirs.append(IncludeDir{ .raw_path = include_path });
try self.include_dirs.append(IncludeDir{ .path = .{ .path = include_path } });
const lib_path = b.pathJoin(&.{ root, "installed", triplet, "lib" });
try self.lib_paths.append(.{ .path = lib_path });