mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builder: pass -g3 for -cg
This commit is contained in:
parent
2ee8f93d60
commit
1873a0cb6d
@ -207,7 +207,7 @@ fn (mut v Builder) cc() {
|
|||||||
println('Building ${v.pref.out_name}...')
|
println('Building ${v.pref.out_name}...')
|
||||||
}
|
}
|
||||||
debug_mode := v.pref.is_debug
|
debug_mode := v.pref.is_debug
|
||||||
mut debug_options := '-g'
|
mut debug_options := '-g3'
|
||||||
mut optimization_options := '-O2'
|
mut optimization_options := '-O2'
|
||||||
mut guessed_compiler := v.pref.ccompiler
|
mut guessed_compiler := v.pref.ccompiler
|
||||||
if guessed_compiler == 'cc' && v.pref.is_prod {
|
if guessed_compiler == 'cc' && v.pref.is_prod {
|
||||||
@ -233,7 +233,7 @@ fn (mut v Builder) cc() {
|
|||||||
//
|
//
|
||||||
if is_cc_clang {
|
if is_cc_clang {
|
||||||
if debug_mode {
|
if debug_mode {
|
||||||
debug_options = '-g -O0 -no-pie'
|
debug_options = '-g3 -O0 -no-pie'
|
||||||
}
|
}
|
||||||
optimization_options = '-O3'
|
optimization_options = '-O3'
|
||||||
mut have_flto := true
|
mut have_flto := true
|
||||||
|
Loading…
Reference in New Issue
Block a user