aboutsummaryrefslogtreecommitdiffstats
path: root/Game
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-04-30 13:29:35 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-04-30 13:29:35 +0000
commitef62a79bbfa8db024a3b3399d3605dd67f568b72 (patch)
treea78efd8e91c6d1be13705494d498fac4ad725618 /Game
parent85094b44de1f7a1a9bd710b162670fdb0a02a9a8 (diff)
downloadusdx-ef62a79bbfa8db024a3b3399d3605dd67f568b72.tar.gz
usdx-ef62a79bbfa8db024a3b3399d3605dd67f568b72.tar.xz
usdx-ef62a79bbfa8db024a3b3399d3605dd67f568b72.zip
disable stack-checks on debug build (-Ct) to avoid Runtime-Exceptions (Exit-Code 202) e.g. when using non-FPC-managed threads as with SDL_CreateThread(). Stacks of external threads are sometimes considered invalid (even in a test program that just contained SDL_CreateThread, a Thread-function with "return 0" as only line and a loop after SDL_CreateThread, so FPC does not detect a real stack-error). After initializing the console-output (which calls BeginThread) no stack-check error occurs anymore, very strange.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1042 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game')
-rw-r--r--Game/Code/m4/fpc.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/Game/Code/m4/fpc.m4 b/Game/Code/m4/fpc.m4
index e2b0cfbc..896c53d2 100644
--- a/Game/Code/m4/fpc.m4
+++ b/Game/Code/m4/fpc.m4
@@ -27,7 +27,7 @@ dnl - Do not use -dDEBUG because this will enable range-checks that will fail wi
dnl - Disable -Xs which is defined in fpc.cfg (TODO: is this necessary?).
dnl - For FPC we have to use DEBUG_MODE instead of DEBUG to enable the apps debug-mode
dnl because DEBUG enables some additional compiler-flags in fpc.cfg too
-PFLAGS_DEBUG=${PFLAGS_DEBUG-"-gl -Cit -Xs- -vew -dDEBUG_MODE"}
+PFLAGS_DEBUG=${PFLAGS_DEBUG-"-gl -Xs- -vew -dDEBUG_MODE"}
dnl -dRELEASE works too but we define our own settings
PFLAGS_RELEASE=${PFLAGS_RELEASE-"-O2 -Xs -vew"}