Type Function Type [src]

Prototype

pub fn Type(comptime id: Id) type

Parameters

id: Id

Source

pub fn Type(comptime id: Id) type { return switch (id) { .top_level => Build.TopLevelStep, .compile => Compile, .install_artifact => InstallArtifact, .install_file => InstallFile, .install_dir => InstallDir, .remove_dir => RemoveDir, .fail => Fail, .fmt => Fmt, .translate_c => TranslateC, .write_file => WriteFile, .update_source_files => UpdateSourceFiles, .run => Run, .check_file => CheckFile, .check_object => CheckObject, .config_header => ConfigHeader, .objcopy => ObjCopy, .options => Options, .custom => @compileError("no type available for custom step"), }; }