mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
pref: maintain order of 'debug' in compile defines as mod cache key depends on it
This commit is contained in:
parent
5cea8d30fa
commit
f3351b6a29
@ -92,11 +92,16 @@ pub fn (mut p Preferences) fill_with_defaults() {
|
|||||||
} else {
|
} else {
|
||||||
// enable the GC by default
|
// enable the GC by default
|
||||||
p.gc_mode = .boehm_full_opt
|
p.gc_mode = .boehm_full_opt
|
||||||
|
// NOTE: these are added to p.compile_defines[_all]
|
||||||
|
// more than once when building modules for usecache
|
||||||
p.parse_define('gcboehm')
|
p.parse_define('gcboehm')
|
||||||
p.parse_define('gcboehm_full')
|
p.parse_define('gcboehm_full')
|
||||||
p.parse_define('gcboehm_opt')
|
p.parse_define('gcboehm_opt')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if p.is_debug {
|
||||||
|
p.parse_define('debug')
|
||||||
|
}
|
||||||
if p.os == ._auto {
|
if p.os == ._auto {
|
||||||
// No OS specifed? Use current system
|
// No OS specifed? Use current system
|
||||||
p.os = get_host_os()
|
p.os = get_host_os()
|
||||||
|
@ -733,9 +733,6 @@ pub fn parse_args_and_show_errors(known_external_commands []string, args []strin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if res.is_debug {
|
|
||||||
res.parse_define('debug')
|
|
||||||
}
|
|
||||||
if command == 'crun' {
|
if command == 'crun' {
|
||||||
res.is_crun = true
|
res.is_crun = true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user