timok wrote:
Can you clarify further how the compiler settings goes.
For example, PATH, switch, linker, etc.
Hi,
To create a new compiler, follow these simple steps:
1) From the Build Settings dialog, select the 'Compiler' tab and click on the 'New..' button - give the compiler a name and click OK
2) You should now see a new compiler defined at the left tree with various sub-node
3) select the 'switches' and modify the switches to fit your compiler:
ArchiveOutput - this is the switch passed the linker when creating archive, under MSVC this is equal to /OUT:, while for GNU its simply left empty
Debug: debug switch '/Zi ' for MSVC, while '-g ' for GNU (note that the switch also includes a trailing space)
Include: the compiler include switch '-I' under GNU, /I for MSVC
I think that for SDCC you can copy the switches from GNU g++/gcc
4) select the 'File Types' and update the build lines for each file extension - or leave them as is
5) Tools: this page contains the toolchain of your compiler. for example, you want to replace Compiler Name with sdcc.exe from g++
PATH Environment variable: you can edit the PATH environment variable here, but note that you must prepend the old content to the new content, otherwise it will override it
so, if your toolchain locates under C:\sdcc\bin, you might want to edit the PATH to include this:
on Linux:
Note the difference in the separator from ';' to ':' from LInux and Windows
6) Patterns:
codelite uses regexes to parse the compiler output. Usually you will need 1 regex to parse errors and 1 regex to parse warnings.
the 'File Index' and 'Line Index' is the group number in the regex that codelite can locate the file name or line number (by providing valid regexs, codelite will be able
to parse and colour error/warning in the build output, as well as providing 'hyperlink' for error files)
Hope it cleared it
Eran