Compiler module

set_build_options

procedureSource

Replaces the options of workspace w. Set them before adding code.

Example↗
#run {
    w := compiler_create_workspace("options");
    options := get_build_options(w);
    options.output_type = .NO_OUTPUT;
    set_optimization(*options, .OPTIMIZED);
    set_build_options(options, w);
    assert(get_build_options(w).output_type == .NO_OUTPUT);
    compiler_destroy_workspace(w);
}

main :: () {}
set_build_options :: (
    options: Build_Options,
    w: Workspace = -1,
    loc := #caller_location
)

Parameters

options: Build_Options
w: Workspace = -1
loc := #caller_location

See also