diff options
-rwxr-xr-x | tools/configure | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure index ecccdb972c..f6fc50d905 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -271,6 +271,13 @@ simcc () { | |||
271 | fibers="" | 271 | fibers="" |
272 | endian="" # endianess of the dap doesnt matter here | 272 | endian="" # endianess of the dap doesnt matter here |
273 | 273 | ||
274 | # build a 32-bit simulator | ||
275 | if [ "$ARG_32BIT" = "1" ]; then | ||
276 | echo "Building 32-bit simulator" | ||
277 | GCCOPTS="$GCCOPTS -m32" | ||
278 | LDOPTS="$LDOPTS -m32" | ||
279 | fi | ||
280 | |||
274 | # default output binary name, don't override app_get_platform() | 281 | # default output binary name, don't override app_get_platform() |
275 | if [ "$app_type" != "sdl-app" ]; then | 282 | if [ "$app_type" != "sdl-app" ]; then |
276 | output="rockboxui" | 283 | output="rockboxui" |
@@ -1361,6 +1368,7 @@ help() { | |||
1361 | --no-sdl-threads Disallow use of SDL threads. This prevents the default | 1368 | --no-sdl-threads Disallow use of SDL threads. This prevents the default |
1362 | behavior of falling back to them if no native thread | 1369 | behavior of falling back to them if no native thread |
1363 | support was found. | 1370 | support was found. |
1371 | --32-bit Force a 32-bit simulator (use with --sdl-threads for duke3d) | ||
1364 | --prefix Target installation directory | 1372 | --prefix Target installation directory |
1365 | --compiler-prefix Override compiler prefix (inherently dangerous) | 1373 | --compiler-prefix Override compiler prefix (inherently dangerous) |
1366 | --help Shows this message (must not be used with other options) | 1374 | --help Shows this message (must not be used with other options) |
@@ -1383,6 +1391,7 @@ ARG_VOICE= | |||
1383 | ARG_ARM_THUMB= | 1391 | ARG_ARM_THUMB= |
1384 | ARG_PREFIX="$PREFIX" | 1392 | ARG_PREFIX="$PREFIX" |
1385 | ARG_THREAD_SUPPORT= | 1393 | ARG_THREAD_SUPPORT= |
1394 | ARG_32BIT= | ||
1386 | err= | 1395 | err= |
1387 | for arg in "$@"; do | 1396 | for arg in "$@"; do |
1388 | case "$arg" in | 1397 | case "$arg" in |
@@ -1401,6 +1410,7 @@ for arg in "$@"; do | |||
1401 | --voice=*) ARG_VOICE=`echo "$arg" | cut -d = -f 2`;; | 1410 | --voice=*) ARG_VOICE=`echo "$arg" | cut -d = -f 2`;; |
1402 | --thumb) ARG_ARM_THUMB=1;; | 1411 | --thumb) ARG_ARM_THUMB=1;; |
1403 | --no-thumb) ARG_ARM_THUMB=0;; | 1412 | --no-thumb) ARG_ARM_THUMB=0;; |
1413 | --32-bit) ARG_32BIT=1;; | ||
1404 | --sdl-threads)ARG_THREAD_SUPPORT=1;; | 1414 | --sdl-threads)ARG_THREAD_SUPPORT=1;; |
1405 | --no-sdl-threads) | 1415 | --no-sdl-threads) |
1406 | ARG_THREAD_SUPPORT=0;; | 1416 | ARG_THREAD_SUPPORT=0;; |