Skip to content

OrangeC: Add support for this compiler

David Lindauer requested to merge LADSoft/cmake:OCCToolchain into master

Identify the compiler as ORANGEC. Add compiler information modules.


OCC is a compiler I've been working on for maybe fifteen years; at present it does C variants through C11 and C++11/C++14. I'm primarily wanting to add it to CMAKE because I've gotten feedback that noone wants to remember compiler specific flags for yet another compiler and it is generally easier for users if they can use a familiar interface.

This is mostly the new files for the OCC tool chain in Modules/Compiler; the only modification to existing files was to hook OCC into the compiler id mechanism (a one line code change).

This only works under windows at present; OCC doesn't yet generate linux programs...

If you need to verify that the changes do work, I just made the corresponding OCC release on my github account, LADSoft. You are looking for version 6.0.70.2. It was pretty easy to test, I just set the CMAKE_C_COMPILER and CMAKE_CXX_COMPILER as command line switches and used MinGW Makefiles as the generator. Then wrote various cmakelists.txt files and validated that they generated the programs I wanted them to generate.


Fixes: #25032 (closed)
Topic-rename: orangec-compiler

Edited by Brad King

Merge request reports