Function addDecoratedDirectoryArg [src]

Prototype

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

Parameters

run: *Runprefix: []const u8lazy_directory: std.Build.LazyPathsuffix: []const u8

Source

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