Function addObjCopy [src]

Prototype

pub fn addObjCopy(cs: *Compile, options: Step.ObjCopy.Options) *Step.ObjCopy

Parameters

cs: *Compileoptions: Step.ObjCopy.Options

Source

pub fn addObjCopy(cs: *Compile, options: Step.ObjCopy.Options) *Step.ObjCopy { const b = cs.step.owner; var copy = options; if (copy.basename == null) { if (options.format) |f| { copy.basename = b.fmt("{s}.{s}", .{ cs.name, @tagName(f) }); } else { copy.basename = cs.name; } } return b.addObjCopy(cs.getEmittedBin(), copy); }