1
0
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:
Delyan Angelov 2020-07-15 12:46:18 +03:00
parent 2ee8f93d60
commit 1873a0cb6d

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