v3.pref
fn comptime_flag_value #
fn comptime_flag_value(p &Preferences, name string) bool
comptime_flag_value supports comptime flag value handling for pref.
fn comptime_optional_flag_value #
fn comptime_optional_flag_value(p &Preferences, name string) bool
comptime_optional_flag_value supports comptime optional flag value handling for pref.
fn comptime_pkgconfig_value #
fn comptime_pkgconfig_value(name string) bool
comptime_pkgconfig_value supports comptime pkgconfig value handling for pref.
fn file_has_incompatible_os_suffix #
fn file_has_incompatible_os_suffix(file string, current_os string) bool
file_has_incompatible_os_suffix converts file has incompatible os suffix data for pref.
fn get_v_files_from_dir #
fn get_v_files_from_dir(dir string, user_defines []string, target_os string) []string
get_v_files_from_dir returns get v files from dir data for pref.
fn is_test_file_for_backend #
fn is_test_file_for_backend(path string, backend string) bool
fn new_preferences #
fn new_preferences() &Preferences
new_preferences supports new preferences handling for pref.
fn normalized_os #
fn normalized_os(target_os string) string
normalized_os supports normalized os handling for pref.
struct Preferences #
struct Preferences {
pub mut:
verbose bool
output_file string
target_os string = os.user_os()
user_defines []string
backend string = 'c'
c99 bool
vroot string = detect_vroot()
vexe string = detect_vexe()
selfhost bool
building_v bool // compiling the V compiler itself: no generics, skip monomorphization
is_prod bool
}
Preferences represents preferences data used by pref.
fn (Preferences) get_vlib_module_path #
fn (p &Preferences) get_vlib_module_path(mod string) string
get_vlib_module_path returns get vlib module path data for Preferences.
fn (Preferences) get_module_path #
fn (p &Preferences) get_module_path(mod string, importing_file_path string) string
get_module_path returns get module path data for Preferences.
fn (Preferences) normalized_target_os #
fn (p &Preferences) normalized_target_os() string
normalized_target_os supports normalized target os handling for Preferences.
fn (Preferences) is_cross_target #
fn (p &Preferences) is_cross_target() bool
is_cross_target reports whether is cross target applies in pref.