builder: pass -g3 for -cg

pull/5838/head
Delyan Angelov 2020-07-15 12:46:18 +03:00
parent 2ee8f93d60
commit 1873a0cb6d
1 changed files with 2 additions and 2 deletions

View File

@ -207,7 +207,7 @@ fn (mut v Builder) cc() {
println('Building ${v.pref.out_name}...')
}
debug_mode := v.pref.is_debug
mut debug_options := '-g'
mut debug_options := '-g3'
mut optimization_options := '-O2'
mut guessed_compiler := v.pref.ccompiler
if guessed_compiler == 'cc' && v.pref.is_prod {
@ -233,7 +233,7 @@ fn (mut v Builder) cc() {
//
if is_cc_clang {
if debug_mode {
debug_options = '-g -O0 -no-pie'
debug_options = '-g3 -O0 -no-pie'
}
optimization_options = '-O3'
mut have_flto := true