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:
Roman Artiukhin 2024-06-09 11:26:04 +03:00 committed by Solomon Peachy
parent eb2146d683
commit 5b61c79cf8

6
tools/configure vendored
View file

@ -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"