Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

AddCSourceFilesOptions

Public Struct
std.Build.Module.AddCSourceFilesOptions
pub const AddCSourceFilesOptions = struct

Fields

root: ?LazyPath = null

When provided, files are relative to root rather than the package that owns the Compile step.

files: []const []const u8
flags: []const []const u8 = &.{}
language: ?CSourceLanguage = null

By default, determines language of each file individually based on its file extension

File

Build/Module.zig:377
377
378
379
380
381
382
383
384
385
pub const AddCSourceFilesOptions = struct {
    /// When provided, `files` are relative to `root` rather than the
    /// package that owns the `Compile` step.
    root: ?LazyPath = null,
    files: []const []const u8,
    flags: []const []const u8 = &.{},
    /// By default, determines language of each file individually based on its file extension
    language: ?CSourceLanguage = null,
}