@@ -21,15 +21,16 @@ pub enum Arch {
2121
2222pub struct Preferences {
2323pub mut :
24- debug bool
25- verbose bool
26- skip_genv bool
27- skip_builtin bool
28- skip_imports bool
29- no_parallel bool = true // default to sequential parsing until parallel is fixed
30- backend Backend
31- arch Arch = .auto
32- output_file string
24+ debug bool
25+ verbose bool
26+ skip_genv bool
27+ skip_builtin bool
28+ skip_imports bool
29+ skip_type_check bool // Skip type checking phase (for backends that don't need it yet)
30+ no_parallel bool = true // default to sequential parsing until parallel is fixed
31+ backend Backend
32+ arch Arch = .auto
33+ output_file string
3334pub :
3435 vroot string = os.dir (@VEXE)
3536 vmodules_path string = os.vmodules_dir ()
@@ -69,15 +70,16 @@ pub fn new_preferences_from_args(args []string) Preferences {
6970 // Default to sequential parsing (no_parallel=true) unless --parallel is specified
7071 use_parallel := '--parallel' in options
7172 return Preferences{
72- debug: '--debug' in options || '-d' in options
73- verbose: '--verbose' in options || '-v' in options
74- skip_genv: '--skip-genv' in options
75- skip_builtin: '--skip-builtin' in options
76- skip_imports: '--skip-imports' in options
77- no_parallel: ! use_parallel
78- backend: backend
79- arch: arch
80- output_file: output_file
73+ debug: '--debug' in options || '-d' in options
74+ verbose: '--verbose' in options || '-v' in options
75+ skip_genv: '--skip-genv' in options
76+ skip_builtin: '--skip-builtin' in options
77+ skip_imports: '--skip-imports' in options
78+ skip_type_check: '--skip-type-check' in options
79+ no_parallel: ! use_parallel
80+ backend: backend
81+ arch: arch
82+ output_file: output_file
8183 }
8284}
8385
@@ -105,14 +107,15 @@ pub fn new_preferences_using_options(options []string) Preferences {
105107 use_parallel := '--parallel' in options
106108 return Preferences{
107109 // config flags
108- debug: '--debug' in options || '-d' in options
109- verbose: '--verbose' in options || '-v' in options
110- skip_genv: '--skip-genv' in options
111- skip_builtin: '--skip-builtin' in options
112- skip_imports: '--skip-imports' in options
113- no_parallel: ! use_parallel
114- backend: backend
115- arch: arch
110+ debug: '--debug' in options || '-d' in options
111+ verbose: '--verbose' in options || '-v' in options
112+ skip_genv: '--skip-genv' in options
113+ skip_builtin: '--skip-builtin' in options
114+ skip_imports: '--skip-imports' in options
115+ skip_type_check: '--skip-type-check' in options
116+ no_parallel: ! use_parallel
117+ backend: backend
118+ arch: arch
116119 }
117120}
118121
0 commit comments