Skip to content

Build the tests in Release mode.

Dr. Jorrit Fahlke requested to merge use-release-build into master

Various tests fail because pacxx++ has problems with compiling code in debug mode. Possible sources:

  • Exception handling code. PACXX basically assumes Exceptions are nether thrown in kernel code. However, it is possible that some of the exception handling code is left in as dead code, and that in debug mode with less aggressive optimization the dead code elimination does not in fact eliminate that code before generation. This meands that generation could fail in the online compile phase.
  • assert()'s. These are removed by the preprocessor in Release mode, but will generate calls to built-in functions in debug mode. These basically need special handling to remove these calls, or replace them by something meaningful that can work when executed on a device.

At the moment, using Release mode is just much more useful than using Debug mode.

Merge request reports