Function dupe [src]

Duplicates the install directory including the path if set to custom.

Prototype

pub fn dupe(dir: InstallDir, builder: *Build) InstallDir

Parameters

dir: InstallDirbuilder: *Build

Source

pub fn dupe(dir: InstallDir, builder: *Build) InstallDir { if (dir == .custom) { return .{ .custom = builder.dupe(dir.custom) }; } else { return dir; } }