cake icon indicating copy to clipboard operation
cake copied to clipboard

Add Pelles C

Open ruanjiashing opened this issue 3 years ago • 2 comments

First I think it's simple as modifying build.h is enough, it seems to be more complicated than what I could do. Please add Pelles C to the list of supported compiler. Pelles C supports C2X and can be checked with the macro __POCC__

This is the help file of Pelles C I attached as zip that has full document about the command line usage of it. I didn't put anything bad in it. You could scan with virustotal first.

help0009.zip

This is my scan result:

https://www.virustotal.com/gui/file/670d48c6f0c7f2c3c046cb23eb574c233ba698df523b13afd8fe87b044afab70?nocache=1

p/s: you could see that the command line switches are very similar to MSVC.

ruanjiashing avatar Oct 29 '22 09:10 ruanjiashing

I am working on it.

Cake uses https://github.com/hoedown/hoedown to generate documentation. hoedown is compiled on cake build. I am now checking the compilation of hoedown with pelles C .

thradams avatar Oct 29 '22 10:10 thradams

I made several changes to add PellesC. At the Pelles C command prompt:

cc -Ze build.c

The compilation is not working yet because not because of the build.c or build.c but because of the sources.

Sample

fs.c(309): error #2149: Undefined size for 'info' with type '(incomplete) struct stat'.

I need to check how stat is defined in Pelles C...etc

thradams avatar Oct 31 '22 21:10 thradams

stat was fixed..

thradams avatar Oct 31 '22 21:10 thradams