do not optimize the test lib
else localFunction in test_local_function is likely inlined and the tests fail
This commit is contained in:
parent
ec870ef992
commit
701d6c78f2
2 changed files with 6 additions and 1 deletions
|
|
@ -4,6 +4,9 @@
|
|||
|
||||
#include <mach_detours.h>
|
||||
|
||||
// Note that this file must be compiled without optimizations (or at least without inlining)
|
||||
// else localFunction() calls below are likely going to be inlined at the call site, and detours will not work.
|
||||
|
||||
static int localFunctionCounter = 0;
|
||||
int localFunction()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue