Skip to content

Commit 11d316a

Browse files
committed
fix(#1142): use absolute path compatable .cwd_relative for dxc_exe.addLibraryPath
1 parent 5766a07 commit 11d316a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ pub fn build(b: *Build) !void {
254254

255255
// For some reason, msvc target needs atls.lib to be in the 'zig build' working directory.
256256
// Addomg tp the library path like this has no effect:
257-
dxc_exe.addLibraryPath(b.path(lib_dir_path));
257+
dxc_exe.addLibraryPath(.{ .cwd_relative = lib_dir_path });
258258
// So instead we must copy the lib into this directory:
259259
try std.fs.cwd().copyFile(lib_path, std.fs.cwd(), "atls.lib", .{});
260260
try std.fs.cwd().copyFile(pdb_path, std.fs.cwd(), pdb_name, .{});

0 commit comments

Comments
 (0)