Add NDEBUG to non-debug targets in Code::Blocks. Remove a few inlines that were causing problems with Linux. Remove a problematic hardcoded initialization of OutputModule I'd forgotten about in Spu2-x.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2967 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2010-05-08 01:51:29 +00:00
parent a3f9d74255
commit 62c15102e4
19 changed files with 73 additions and 51 deletions

View File

@ -18,22 +18,6 @@
<Add option="-O0" />
</Compiler>
</Target>
<Target title="Release">
<Option output="../../deps/libsoundtouch" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="./.objs/release" />
<Option type="2" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Compiler>
<Add option="-fexpensive-optimizations" />
<Add option="-O3" />
<Add option="-W" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
<Target title="Devel">
<Option output="../../deps/devel/libsoundtouch-dev" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
@ -45,8 +29,26 @@
<Add option="-O1" />
<Add option="-W" />
<Add option="-g" />
<Add option="-DNDEBUG" />
</Compiler>
</Target>
<Target title="Release">
<Option output="../../deps/libsoundtouch" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="./.objs/release" />
<Option type="2" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Compiler>
<Add option="-fexpensive-optimizations" />
<Add option="-O3" />
<Add option="-W" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-march=athlon-xp" />

View File

@ -18,22 +18,6 @@
<Add option="-O0" />
</Compiler>
</Target>
<Target title="Release">
<Option output="../../deps/release/libbzip2" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="./.objs/release" />
<Option type="2" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Compiler>
<Add option="-fexpensive-optimizations" />
<Add option="-O3" />
<Add option="-W" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
<Target title="Devel">
<Option output="../../deps/devel/libbzip2" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
@ -45,8 +29,26 @@
<Add option="-O1" />
<Add option="-W" />
<Add option="-g" />
<Add option="-DNDEBUG" />
</Compiler>
</Target>
<Target title="Release">
<Option output="../../deps/release/libbzip2" prefix_auto="1" extension_auto="1" />
<Option working_dir="" />
<Option object_output="./.objs/release" />
<Option type="2" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Compiler>
<Add option="-fexpensive-optimizations" />
<Add option="-O3" />
<Add option="-W" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-march=athlon-xp" />

View File

@ -19,6 +19,19 @@
<Add option="-O0" />
</Compiler>
</Target>
<Target title="Devel">
<Option output="../../deps/devel/zlib" prefix_auto="0" extension_auto="1" />
<Option working_dir="" />
<Option object_output="./.objs/devel" />
<Option type="2" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Compiler>
<Add option="-O2" />
<Add option="-W" />
<Add option="-DNDEBUG" />
</Compiler>
</Target>
<Target title="Release">
<Option output="../../deps/release/zlib" prefix_auto="0" extension_auto="1" />
<Option working_dir="" />
@ -30,18 +43,7 @@
<Add option="-fexpensive-optimizations" />
<Add option="-O3" />
<Add option="-W" />
</Compiler>
</Target>
<Target title="Devel">
<Option output="../../deps/devel/zlib" prefix_auto="0" extension_auto="1" />
<Option working_dir="" />
<Option object_output="./.objs/devel" />
<Option type="2" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Compiler>
<Add option="-W" />
<Add option="-O2" />
<Add option="-DNDEBUG" />
</Compiler>
</Target>
</Build>

View File

@ -63,6 +63,7 @@
<Add option="-ftree-pre" />
<Add option="-DPCSX2_DEVBUILD" />
<Add option="-DPCSX2_DEVEL" />
<Add option="-DNDEBUG" />
<Add directory="../../include" />
<Add directory="../../include/Utilities" />
</Compiler>
@ -108,6 +109,7 @@
<Add option="-falign-loops -falign-labels" />
<Add option="-ftree-vrp" />
<Add option="-ftree-pre" />
<Add option="-DNDEBUG" />
<Add directory="../../include" />
<Add directory="../../include/Utilities" />
</Compiler>

View File

@ -63,6 +63,7 @@
<Add option="-ftree-pre" />
<Add option="-DPCSX2_DEVBUILD" />
<Add option="-DPCSX2_DEVEL" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-s" />
@ -109,6 +110,7 @@
<Add option="-falign-loops -falign-labels" />
<Add option="-ftree-vrp" />
<Add option="-ftree-pre" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-s" />

View File

@ -35,7 +35,7 @@
//#include "PS2Edefs.h"
static void __forceinline SysMessage(const char *fmt, ...);
static void SysMessage(const char *fmt, ...);
static void __forceinline PluginNullConfigure(std::string desc, s32 &log);
static void __forceinline PluginNullAbout(const char *aboutText);
@ -155,7 +155,7 @@ struct PluginConf
#ifdef __LINUX__
static void __forceinline SysMessage(const char *fmt, ...)
static void SysMessage(const char *fmt, ...)
{
va_list list;
char msg[512];

View File

@ -26,6 +26,7 @@
<Option createStaticLib="1" />
<Compiler>
<Add option="-O2" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-s" />

View File

@ -22,6 +22,7 @@
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-s" />
@ -41,10 +42,10 @@
<Add option="`pkg-config gtk+-2.0 --libs`" />
<Add option="-shared" />
</Linker>
<Unit filename="../FW.cpp" />
<Unit filename="../FW.h" />
<Unit filename="../Config.cpp" />
<Unit filename="../Config.h" />
<Unit filename="../FW.cpp" />
<Unit filename="../FW.h" />
<Unit filename="../ReadMe.txt" />
<Extensions>
<code_completion />

View File

@ -26,6 +26,7 @@
<Option createStaticLib="1" />
<Compiler>
<Add option="-O2" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-s" />

View File

@ -26,6 +26,7 @@
<Option createStaticLib="1" />
<Compiler>
<Add option="-O2" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-s" />

View File

@ -29,6 +29,7 @@
<Option createStaticLib="1" />
<Compiler>
<Add option="-O2" />
<Add option="-DNDEBUG" />
<Add directory="../Linux" />
<Add directory="../../SPU2null" />
<Add directory="../../../common/include" />

View File

@ -26,6 +26,7 @@
<Option createStaticLib="1" />
<Compiler>
<Add option="-O2" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-s" />

View File

@ -26,6 +26,7 @@
<Option createStaticLib="1" />
<Compiler>
<Add option="-O2" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-s" />

View File

@ -26,6 +26,7 @@
<Option createStaticLib="1" />
<Compiler>
<Add option="-O2" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-s" />

View File

@ -45,7 +45,7 @@ bool EffectsDisabled = false;
int ReverbBoost = 0;
// OUTPUT
u32 OutputModule = FindOutputModuleById( PortaudioOut->GetIdent() );
u32 OutputModule = 0;
int SndOutLatencyMS = 160;
bool timeStretchEnabled = true;
bool asyncMixingEnabled = false;

View File

@ -27,6 +27,7 @@
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add library="../../../../deps/libsoundtouch.a" />

View File

@ -57,7 +57,7 @@ __forceinline s16 * __fastcall GetMemPtr(u32 addr)
return (_spu2mem+addr);
}
__forceinline s16 __fastcall spu2M_Read( u32 addr )
s16 __fastcall spu2M_Read( u32 addr )
{
return *GetMemPtr( addr & 0xfffff );
}
@ -1428,7 +1428,7 @@ static RegWriteHandler * const tbl_reg_writes[0x401] =
};
__forceinline void SPU2_FastWrite( u32 rmem, u16 value )
void SPU2_FastWrite( u32 rmem, u16 value )
{
tbl_reg_writes[(rmem&0x7ff)/2]( value );
}

View File

@ -30,6 +30,7 @@
<Option createStaticLib="1" />
<Compiler>
<Add option="-O2" />
<Add option="-DNDEBUG" />
<Add directory="../Linux" />
<Add directory="../../opengl" />
<Add directory="../../../../common/include" />

View File

@ -34,6 +34,7 @@
<Add option="-W" />
<Add option="-g" />
<Add option="-DZEROGS_DEVBUILD" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add library="../../../../../deps/release/libUtilities.a" />
@ -50,6 +51,7 @@
<Add option="-O2" />
<Add option="-W" />
<Add option="-DRELEASE_TO_PUBLIC" />
<Add option="-DNDEBUG" />
</Compiler>
<Linker>
<Add option="-s" />