Function addExecutable [src]
Deprecated: use createModule or addModule with std.Build.addExecutable instead.
Creates a step to build an executable from the translated source.
Prototype
pub fn addExecutable(translate_c: *TranslateC, options: AddExecutableOptions) *Step.Compile
Parameters
translate_c: *TranslateC
options: AddExecutableOptions
Source
pub fn addExecutable(translate_c: *TranslateC, options: AddExecutableOptions) *Step.Compile {
return translate_c.step.owner.addExecutable(.{
.root_source_file = translate_c.getOutput(),
.name = options.name orelse "translated_c",
.version = options.version,
.target = options.target orelse translate_c.target,
.optimize = options.optimize orelse translate_c.optimize,
.linkage = options.linkage,
});
}