cc: use -g instead of -g3

pull/7853/head
Alexander Medvednikov 2021-01-04 00:15:27 +01:00
parent acc93a66bb
commit baae302894
1 changed files with 3 additions and 3 deletions

View File

@ -182,7 +182,7 @@ mut:
fn (mut v Builder) setup_ccompiler_options(ccompiler string) {
mut ccoptions := CcompilerOptions{}
//
mut debug_options := '-g3'
mut debug_options := '-g'
mut optimization_options := '-O2'
// arguments for the C compiler
// TODO : activate -Werror once no warnings remain
@ -231,7 +231,7 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) {
}
if ccoptions.is_cc_clang {
if ccoptions.debug_mode {
debug_options = '-g3 -O0'
debug_options = '-g -O0'
}
optimization_options = '-O3'
mut have_flto := true
@ -244,7 +244,7 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) {
}
if ccoptions.is_cc_gcc {
if ccoptions.debug_mode {
debug_options = '-g3 -no-pie'
debug_options = '-g -no-pie'
}
optimization_options = '-O3 -fno-strict-aliasing -flto'
}