mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
FS #11859: Enable optimizations for SDL application builds.
Only disable them for the simulator (like before). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31547 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f36f7825d7
commit
949e6398c8
1 changed files with 6 additions and 1 deletions
7
tools/configure
vendored
7
tools/configure
vendored
|
@ -217,7 +217,12 @@ simcc () {
|
|||
|
||||
app_type=$1
|
||||
winbuild=""
|
||||
GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef// -e s/-O//`
|
||||
GCCOPTS=`echo $CCOPTS | sed -e s/-ffreestanding// -e s/-nostdlib// -e s/-Wundef//`
|
||||
if [ "$app_type" != "sdl-app" ]; then
|
||||
# Disable optimizations for non-app builds
|
||||
GCCOPTS=`echo $GCCOPTS | sed -e s/-O//`
|
||||
fi
|
||||
|
||||
GCCOPTS="$GCCOPTS -fno-builtin -g"
|
||||
GCCOPTIMIZE=''
|
||||
LDOPTS='-lm' # button-sdl.c uses sqrt()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue