Function addPrefixedDirectoryArg [src]
Prototype
pub fn addPrefixedDirectoryArg(run: *Run, prefix: []const u8, directory_source: std.Build.LazyPath) void
Parameters
run: *Run
prefix: []const u8
directory_source: std.Build.LazyPath
Source
pub fn addPrefixedDirectoryArg(run: *Run, prefix: []const u8, directory_source: std.Build.LazyPath) void {
const b = run.step.owner;
const prefixed_directory_source: PrefixedLazyPath = .{
.prefix = b.dupe(prefix),
.lazy_path = directory_source.dupe(b),
};
run.argv.append(b.allocator, .{ .directory_source = prefixed_directory_source }) catch @panic("OOM");
directory_source.addStepDependencies(&run.step);
}