diff options
author | Roman Artiukhin <bahusdrive@gmail.com> | 2024-06-09 11:26:04 +0300 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-06-18 20:42:59 -0400 |
commit | 5b61c79cf859bec08b75d6dd733610924d2f8d1e (patch) | |
tree | 558ef6fe368275293de64e8f6f9890c79bc43cdb | |
parent | eb2146d6832524865cf78ef72b75d4f9d5ed9217 (diff) | |
download | rockbox-5b61c79cf859bec08b75d6dd733610924d2f8d1e.tar.gz rockbox-5b61c79cf859bec08b75d6dd733610924d2f8d1e.zip |
simulator: debugging: Disable -Os compiler optimizations when DEBUG is defined
Otherwise, breakpoints may not correspond with the source code
Change-Id: I0f8d4f578bde52c0219923d8be28e01c66c8dfbc
-rwxr-xr-x | tools/configure | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/configure b/tools/configure index bf96bf0058..2016dd4dfb 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -260,7 +260,11 @@ simcc () { | |||
260 | 260 | ||
261 | app_type=$1 | 261 | app_type=$1 |
262 | winbuild="" | 262 | winbuild="" |
263 | GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//` | 263 | GCCOPTS=`echo $CCOPTS | sed -e s/\ -ffreestanding// -e s/\ -nostdlib// -e s/\ -Wundef//` |
264 | |||
265 | if [ "$debug" ]; then | ||
266 | GCCOPTS=`echo $GCCOPTS | sed -e s/\ -Os//` | ||
267 | fi | ||
264 | 268 | ||
265 | GCCOPTS="$GCCOPTS -fno-builtin -g" | 269 | GCCOPTS="$GCCOPTS -fno-builtin -g" |
266 | 270 | ||