structstd.Build.ExecutableOptions[src]

Fields

name: []const u8
version: ?std.SemanticVersion = null
linkage: ?std.builtin.LinkMode = null
max_rss: usize = 0
use_llvm: ?bool = null
use_lld: ?bool = null
zig_lib_dir: ?LazyPath = null
win32_manifest: ?LazyPath = null

Embed a .manifest file in the compilation if the object format supports it. https://learn.microsoft.com/en-us/windows/win32/sbscs/manifest-files-reference Manifest files must have the extension .manifest. Can be set regardless of target. The .manifest file will be ignored if the target object format does not support embedded manifests.

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 ExecutableOptions = struct {
    name: []const u8,
    version: ?std.SemanticVersion = null,
    linkage: ?std.builtin.LinkMode = null,
    max_rss: usize = 0,
    use_llvm: ?bool = null,
    use_lld: ?bool = null,
    zig_lib_dir: ?LazyPath = null,
    /// Embed a `.manifest` file in the compilation if the object format supports it.
    /// https://learn.microsoft.com/en-us/windows/win32/sbscs/manifest-files-reference
    /// Manifest files must have the extension `.manifest`.
    /// Can be set regardless of target. The `.manifest` file will be ignored
    /// if the target object format does not support embedded manifests.
    win32_manifest: ?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,
}