Skip to content

Specifying the Compiler

Doug Binks edited this page Nov 3, 2020 · 2 revisions

The compiler can be specified by providing the location of the compiler through the function:

RuntimeObjectSystem::SetCompilerLocation(const char* path, unsigned short projectId_ = 0 );

On POSIX systems the runtime compilation defaults to using the clang++ or g++ compilers on the current path, selecting the one used to compiler the RuntimeCompiler code. Setting the compiler location will override this selection.

On Windows the default compiler is the MSVC compiler used to compile the code, or the closest MSVC compiler to that version found on the system. If the code was compiled with Clang/LLVM then the compiler used by default is ```clang-cl`` from the LLVM directory of the latest Visual Studio installed.

On Windows, to select clang-cl set the path to "\"%VCINSTALLDIR%Tools\\Llvm\\bin\\clang-cl\" -m64" for 64bit and "\"%VCINSTALLDIR%Tools\\Llvm\\bin\\clang-cl\" -m32" for 32bit.