Disabling runtime compilation
Clone this wiki locally
Runtime compilation can be disabled in one of three ways:
- By setting the RCCPPOFF macro definition in your project.
- By calling RuntimeObjectSystem::SetAutoCompile( false ).
- 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.
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.