Function addAssembly [src]
Deprecated; prefer using addObject where the root_module has an empty
root_source_file and contains an assembly file via Module.addAssemblyFile.
Prototype
pub fn addAssembly(b: *Build, options: AssemblyOptions) *Step.Compile
Parameters
b: *Build
options: AssemblyOptions
Source
pub fn addAssembly(b: *Build, options: AssemblyOptions) *Step.Compile {
const root_module = b.createModule(.{
.target = options.target,
.optimize = options.optimize,
});
root_module.addAssemblyFile(options.source_file);
return b.addObject(.{
.name = options.name,
.max_rss = options.max_rss,
.zig_lib_dir = options.zig_lib_dir,
.root_module = root_module,
});
}