mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
simulator: debugging: Disable -Os compiler optimizations when DEBUG is defined
Otherwise, breakpoints may not correspond with the source code Change-Id: I0f8d4f578bde52c0219923d8be28e01c66c8dfbc
This commit is contained in:
parent
eb2146d683
commit
5b61c79cf8
1 changed files with 5 additions and 1 deletions
6
tools/configure
vendored
6
tools/configure
vendored
|
@ -260,7 +260,11 @@ simcc () {
|
||||||
|
|
||||||
app_type=$1
|
app_type=$1
|
||||||
winbuild=""
|
winbuild=""
|
||||||
GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//`
|
GCCOPTS=`echo $CCOPTS | sed -e s/\ -ffreestanding// -e s/\ -nostdlib// -e s/\ -Wundef//`
|
||||||
|
|
||||||
|
if [ "$debug" ]; then
|
||||||
|
GCCOPTS=`echo $GCCOPTS | sed -e s/\ -Os//`
|
||||||
|
fi
|
||||||
|
|
||||||
GCCOPTS="$GCCOPTS -fno-builtin -g"
|
GCCOPTS="$GCCOPTS -fno-builtin -g"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue