configure: Move optimization spec from build.sh

And use -Og for debug builds.
This commit is contained in:
Matt Borgerson 2022-02-01 23:58:32 -07:00 committed by mborgerson
parent 8d0d21bfd7
commit 5f14ee4a68
2 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ package_linux() {
postbuild=''
debug_opts=''
build_cflags='-O3'
build_cflags=''
default_job_count='12'
sys_ldflags=''
@ -164,7 +164,7 @@ done
target="qemu-system-i386"
if test ! -z "$debug"; then
build_cflags='-O0 -g -DXEMU_DEBUG_BUILD=1'
build_cflags='-DXEMU_DEBUG_BUILD=1'
opts="--enable-debug --enable-trace-backends=log"
else
opts="--enable-lto"

2
configure vendored
View File

@ -5290,7 +5290,7 @@ if test "$skip_meson" = no; then
-Ddocdir="$docdir" \
-Dqemu_firmwarepath="$firmwarepath" \
-Dqemu_suffix="$qemu_suffix" \
-Doptimization=$(if test "$debug" = yes; then echo 0; else echo 2; fi) \
-Doptimization=$(if test "$debug" = yes; then echo g; else echo 3; fi) \
-Ddebug=$(if test "$debug_info" = yes; then echo true; else echo false; fi) \
-Dwerror=$(if test "$werror" = yes; then echo true; else echo false; fi) \
-Dstrip=$(if test "$strip_opt" = yes; then echo true; else echo false; fi) \