Browse Source

contrib: rebuild the Win32 CppUnit under Linux and fix the includes.

Apparently g++ 4.5.2 on native mingw32 inserts references to __Unwind_Resume
when exceptions are supported. This function is not present in the g++ 4.4
cross-compiler found in Debian, leading to linker errors when cross-
compiling. So we use the latter to build CppUnit itself.

Another problem arises with g++ 4.4, which is the incomplete stripping of
exceptions when -fno-exceptions is used. Since ExceptionTestCaseDecorator.h
has such code, we protect it with #ifdef __EXCEPTIONS in the meantime.
legacy
Sam Hocevar sam 13 years ago
parent
commit
09ecf1bd8b
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      test/lol-bench.cpp

+ 0
- 3
test/lol-bench.cpp View File

@@ -137,9 +137,6 @@ static void bench_half(int mode)
ph[i] = RandF(-2.0f, 2.0f);
break;
}
#if defined __EXCEPTIONS
#error lol
#endif

/* Copy float */
timer.GetMs();


Loading…
Cancel
Save