< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate-users] reSIProcate compile profiles


Michael Socaciu wrote:

What compile profile warrants that no asserts will be compiled, or how to build a release version ?



Assuming you're talking about the non-Windows build system, the way to build a release version is to use the "opt" compile profile.

However, this profile does not currently compile out the assert() statements. Because of the way that resiprocate currently uses asserts, compiling them out would not be reasonable -- in most cases, the API violation that would cause an assert to be thrown is so egregious that there is no code to recover from it. Compiling out the assert would generally result in a memory leak, an unexpected crash at some point later in the code, or (most usually) both.

If you would like to compile the asserts out anyway, you can change lines 253 and 254 in build/Makefile.osarch -- simply remove the "#" characters.

/a