diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2015-02-05 16:47:07 +0000 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2015-02-05 16:47:07 +0000 |
commit | 94958cb149f01f2ba070484ccbc0cdf33c1ae9fa (patch) | |
tree | 018e2c6ae8b96c3d10411618e9dbc16a374a36a6 | |
parent | b0cf7b2f3481f00c8ec883f2634e132f610ab9b0 (diff) | |
download | fpGUI-94958cb149f01f2ba070484ccbc0cdf33c1ae9fa.tar.xz |
Framework build scripts switched to DEBUG build mode
The reason this was done, is because the RELEASE mode allows FPC to strip
out code that isn't used by the framework. This causes a problem for other
projects, because other projects might still need that stripped out code
(eg: Docview). It run it often causes a "identifier not found" error.
Switching back to DEBUG build means those projects compile without problem.
-rw-r--r-- | src/build.bat | 2 | ||||
-rwxr-xr-x | src/build.sh | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/build.bat b/src/build.bat index 6928adfe..741048db 100644 --- a/src/build.bat +++ b/src/build.bat @@ -18,5 +18,5 @@ echo "You've got the correct output lib directory" :end -fpc -dRELEASE -dGDI @extrafpc.cfg corelib\gdi\fpgui_toolkit.pas +fpc -dDEBUG -dGDI @extrafpc.cfg corelib\gdi\fpgui_toolkit.pas diff --git a/src/build.sh b/src/build.sh index 3d3394ac..8a180ceb 100755 --- a/src/build.sh +++ b/src/build.sh @@ -13,7 +13,8 @@ if [ ! -d $libpath ]; then fi # Default build -$fpcbin -dRELEASE -dX11 @extrafpc.cfg corelib/x11/fpgui_toolkit.pas +$fpcbin -dDEBUG -dX11 @extrafpc.cfg corelib/x11/fpgui_toolkit.pas + # experimental AggPas-enabled Canvas under X11 -#$fpcbin -dRELEASE -dX11 -dAGGCanvas @extrafpc.cfg corelib/x11/fpgui_toolkit.pas +#$fpcbin -dDEBUG -dX11 -dAGGCanvas @extrafpc.cfg corelib/x11/fpgui_toolkit.pas |