mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-26 21:10:42 +00:00
configure: Move optimization spec from build.sh
And use -Og for debug builds.
This commit is contained in:
parent
8d0d21bfd7
commit
5f14ee4a68
4
build.sh
4
build.sh
@ -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
2
configure
vendored
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user