Disabling runtime compilation

Doug Binks edited this page Oct 19, 2013 · 2 revisions

Runtime compilation can be disabled in one of three ways:

  1. By setting the RCCPPOFF macro definition in your project.
  2. By calling RuntimeObjectSystem::SetAutoCompile( false ).
  3. By not updating the file change notifier.

RCCPPOFF macro definition

When set for runtime compiled source code this removes source filenames from Runtime Modifiable Classes, and disables tracking for Runtime Modifiable Header Files, Using libraries from Runtime Modifiable Classes and Runtime Source Dependencies. Developers should also ensure they don't set include directories or library directories if they do not want this information to be compiled into the module.

This macro can also be in the RuntimeObjectSystem library to remove some unrequired code and prevent runtime compilation.

RuntimeObjectSystem::SetAutoCompile function

This function can be called to set auto compile off before RuntimeObjectSystem::Initialise in order to decrease application start up time by eliminating the source search and file notification registration stages but otherwise leaving the application running normally.

Setting auto compile to true will re-enable runtime compilation and register files.

Calling RuntimeObjectSystem::CompileAll() will cause registration of files in order to compile them, but will not set auto compile on.