structstd.Build.StaticLibraryOptions[src]

Fields

name: []const u8
version: ?std.SemanticVersion = null
max_rss: usize = 0
use_llvm: ?bool = null
use_lld: ?bool = null
zig_lib_dir: ?LazyPath = null
root_module: ?*Module = null

Prefer populating this field (using e.g. createModule) instead of populating the following fields (root_source_file etc). In a future release, those fields will be removed, and this field will become non-optional.

root_source_file: ?LazyPath = null

Deprecated; prefer populating root_module.

target: ?ResolvedTarget = null

Deprecated; prefer populating root_module.

optimize: std.builtin.OptimizeMode = .Debug

Deprecated; prefer populating root_module.

code_model: std.builtin.CodeModel = .default

Deprecated; prefer populating root_module.

link_libc: ?bool = null

Deprecated; prefer populating root_module.

single_threaded: ?bool = null

Deprecated; prefer populating root_module.

pic: ?bool = null

Deprecated; prefer populating root_module.

strip: ?bool = null

Deprecated; prefer populating root_module.

unwind_tables: ?std.builtin.UnwindTables = null

Deprecated; prefer populating root_module.

omit_frame_pointer: ?bool = null

Deprecated; prefer populating root_module.

sanitize_thread: ?bool = null

Deprecated; prefer populating root_module.

error_tracing: ?bool = null

Deprecated; prefer populating root_module.

Source Code

Source code
pub const StaticLibraryOptions = struct {
    name: []const u8,
    version: ?std.SemanticVersion = null,
    max_rss: usize = 0,
    use_llvm: ?bool = null,
    use_lld: ?bool = null,
    zig_lib_dir: ?LazyPath = null,

    /// Prefer populating this field (using e.g. `createModule`) instead of populating
    /// the following fields (`root_source_file` etc). In a future release, those fields
    /// will be removed, and this field will become non-optional.
    root_module: ?*Module = null,

    /// Deprecated; prefer populating `root_module`.
    root_source_file: ?LazyPath = null,
    /// Deprecated; prefer populating `root_module`.
    target: ?ResolvedTarget = null,
    /// Deprecated; prefer populating `root_module`.
    optimize: std.builtin.OptimizeMode = .Debug,
    /// Deprecated; prefer populating `root_module`.
    code_model: std.builtin.CodeModel = .default,
    /// Deprecated; prefer populating `root_module`.
    link_libc: ?bool = null,
    /// Deprecated; prefer populating `root_module`.
    single_threaded: ?bool = null,
    /// Deprecated; prefer populating `root_module`.
    pic: ?bool = null,
    /// Deprecated; prefer populating `root_module`.
    strip: ?bool = null,
    /// Deprecated; prefer populating `root_module`.
    unwind_tables: ?std.builtin.UnwindTables = null,
    /// Deprecated; prefer populating `root_module`.
    omit_frame_pointer: ?bool = null,
    /// Deprecated; prefer populating `root_module`.
    sanitize_thread: ?bool = null,
    /// Deprecated; prefer populating `root_module`.
    error_tracing: ?bool = null,
}