mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.4k stars 1.55k forks source link

Add support for XC16 and C2000 Toolchains #6350

Open alanNz opened 4 years ago

alanNz commented 4 years ago

Microchip XC16 C compiler xc16-gcc.exe Texas Instruments C2000 compiler cl2000.exe

dcbaker commented 4 years ago

For specialized tool chains we really need someone who has access to the tool chain and a desire to both write the initial code, and if not maintain it actively be available to test refactors of the toolchain representations. If you're interested in dong that I can help you get the code landed.

alanNz commented 4 years ago

@dcbaker thank you for your explanation. I've made the additions and have done some initial testing. I was just trying to commit it to a branch but I done have permission? I would appreciate your feedback. Both these toolchains are free downloads.

scivision commented 4 years ago

I would "fork" this repo and then you can push anything you like

alanNz commented 4 years ago

I've added my xc16 and c2000 here. Note I'm also using the ccrx build and adding fixes for that aswell

https://github.com/alanNz/meson/tree/add_xc16_c2000_ccrx

For the xc16 build, the sanity check fails on the command line with a stderr, I'm pretty sure it needs a compile stage and the link commands to be two sperate commands, Is this something that I can override somewhere?

The rest is all working when I ignore the failed sanity check on my sample set of code. I'll keep adding more of my code into it and see how It goes.

@scivision @dcbaker Is there anything that's jumping out at you in the fork?