Function addPrefixedDirectoryArg [src]

Prototype

pub fn addPrefixedDirectoryArg(run: *Run, prefix: []const u8, lazy_directory: std.Build.LazyPath) void

Parameters

run: *Runprefix: []const u8lazy_directory: std.Build.LazyPath

Source

pub fn addPrefixedDirectoryArg(run: *Run, prefix: []const u8, lazy_directory: std.Build.LazyPath) void { const b = run.step.owner; run.argv.append(b.allocator, .{ .decorated_directory = .{ .prefix = b.dupe(prefix), .lazy_path = lazy_directory.dupe(b), .suffix = "", } }) catch @panic("OOM"); lazy_directory.addStepDependencies(&run.step); }