remove redundant use of pathFromRoot

This commit is contained in:
radar roark 2023-05-15 09:49:04 -04:00 committed by Andrew Kelley
parent 027aabf497
commit 244233da2a

View File

@ -1294,7 +1294,7 @@ fn appendModuleArgs(
const name = kv.value_ptr.*;
const deps_str = try constructDepString(b.allocator, mod_names, mod.dependencies);
const src = mod.builder.pathFromRoot(mod.source_file.getPath(mod.builder));
const src = mod.source_file.getPath(mod.builder);
try zig_args.append("--mod");
try zig_args.append(try std.fmt.allocPrint(b.allocator, "{s}:{s}:{s}", .{ name, deps_str, src }));
}