const (
default_module_path = os.vmodules_dir()
)
fn backend_from_string(s string) ?Backend
fn cc_from_string(cc_str string) CompilerType
Helper function to convert string names to CC enum
fn default_c_compiler() string
fn default_tcc_compiler() string
fn get_host_os() OS
fn new_preferences() Preferences
fn os_from_string(os_str string) ?OS
Helper function to convert string names to OS enum
fn parse_args(args []string) (&Preferences, string)
fn vexe_path() string
enum Backend {
c
js
x64
}
enum BuildMode {
default_mode
build_module
}
enum ColorOutput {
auto
always
never
}
enum CompilerType {
gcc
tinyc
clang
mingw
msvc
cplusplus
}
enum OS {
_auto
ios
macos
linux
windows
freebsd
openbsd
netbsd
dragonfly
js
android
solaris
haiku
}
fn (o OS) str() string
enum OutputMode {
stdout
silent
}
struct Preferences {
pub mut:
os OS
backend Backend
build_mode BuildMode
output_mode OutputMode = .stdout
is_verbose bool
is_test bool
is_script bool
is_vsh bool
is_livemain bool
is_liveshared bool
is_shared bool
is_prof bool
profile_file string
profile_no_inline bool
translated bool
is_prod bool
obfuscate bool
is_repl bool
is_run bool
sanitize bool
is_debug bool
is_vlines bool
show_cc bool
show_c_output bool
use_cache bool
retry_compilation bool = true
is_stats bool
cflags string
m64 bool
ccompiler string
ccompiler_type CompilerType
third_party_option string
building_v bool
autofree bool
compress bool
enable_globals bool
is_fmt bool
is_vet bool
is_bare bool
no_preludes bool
custom_prelude string
lookup_path []string
output_cross_c bool
prealloc bool
vroot string
out_name_c string
out_name string
display_name string
bundle_id string
path string
compile_defines []string
compile_defines_all []string
run_args []string
printfn_list []string
print_v_files bool
skip_running bool
skip_warnings bool
warn_impure_v bool
warns_are_errors bool
fatal_errors bool
reuse_tmpc bool
use_color ColorOutput
is_parallel bool
error_limit int
is_vweb bool
only_check_syntax bool
experimental bool
show_timings bool
is_ios_simulator bool
is_apk bool
cleanup_files []string
build_options []string
cache_manager vcache.CacheManager
}
fn (mut p Preferences) fill_with_defaults()
fn (prefs &Preferences) should_compile_c(file string) bool
fn (prefs &Preferences) should_compile_filtered_files(dir string, files_ []string) []string
fn (prefs &Preferences) should_compile_js(file string) bool
fn (pref &Preferences) vrun_elog(s string)