Function fileExt [src]

Prototype

pub fn fileExt(of: ObjectFormat, arch: Cpu.Arch) [:0]const u8

Parameters

of: ObjectFormatarch: Cpu.Arch

Source

pub fn fileExt(of: ObjectFormat, arch: Cpu.Arch) [:0]const u8 { return switch (of) { .c => ".c", .coff => ".obj", .elf, .goff, .macho, .wasm, .xcoff => ".o", .hex => ".ihex", .nvptx => ".ptx", .plan9 => arch.plan9Ext(), .raw => ".bin", .spirv => ".spv", }; }