Code::Blocks Forums

User forums => Help => Topic started by: Edvinas on January 05, 2007, 02:57:40 am

Title: How to add support to unsupported compiler?
Post by: Edvinas on January 05, 2007, 02:57:40 am
Hi,

Is there any way to add support for not supported compiler?

--
Edvinas
Title: Re: How to add support to unsupported compiler?
Post by: Game_Ender on January 05, 2007, 06:00:11 am
Copy an existing one and go the advanced tab and starting editing the options.
Title: Re: How to add support to unsupported compiler?
Post by: Pecan on January 05, 2007, 02:56:59 pm
   //-- Wiki Index
       CodeBlocks Wiki Index (http://wiki.codeblocks.org/index.php?title=Special:Allpages)
   //-- Wiki Main Page
     CodeBlocks Wiki Main Page (http://wiki.codeblocks.org/index.php?title=Main_Page)

Search for "compiler" in the wiki index. Two articles show addition of a compiler
Title: Re: How to add support to unsupported compiler?
Post by: Edvinas on January 08, 2007, 03:48:34 am
Copy an existing one and go the advanced tab and starting editing the options.
Yes, it is possible to do workaround like that, however then you need to hardcode compiler options. I want those specific compiler options to appear in compiler Options tab...
Title: Re: How to add support to unsupported compiler?
Post by: stahta01 on January 08, 2007, 04:11:42 am
Copy an existing one and go the advanced tab and starting editing the options.
Yes, it is possible to do workaround like that, however then you need to hardcode compiler options. I want those specific compiler options to appear in compiler Options tab...

Then you create a patch and upload it to Berlios.
Note: This assumes you can build CodeBlocks from SVN
I would determine which of the supported compilers is closest to your compiler and then create the compiler file like the others under src/plugins/compilergcc folder by copying the closest match with a new name.
Then after you get all the features you want added to it, I would upload the patch to Berlios.
I would create a thread on the patch, and announce the patch in this thread
http://forums.codeblocks.org/index.php?topic=1764.0

Note: They are redesigning the compiler framework for RC3, so after RC3 it should be easier to add new compilers or at least it will be different. I was thinking of adding a compiler myself and decided to wait till I learned more and hope that RC3 was released.

Tim S