ThrowTheSwitch / Ceedling

Ruby-based unit testing and build system for C projects
http://throwtheswitch.org
Other
586 stars 246 forks source link

clang support problem #945

Open jinxinyang opened 5 hours ago

jinxinyang commented 5 hours ago

I want to use your ceedling to carry out the unit test of the driver module of our embedded project, but we use keil's clang for compilation, and the routines here all use gcc. May I ask whether clang is supported now? Here are our compile parameters

-xc -std=c99 --target=arm-arm-none-eabi -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -c -fno-rtti -Werror -funsigned-char -fshort-enums -fshort-wchar

image May I ask how to write this configuration

mvandervoord commented 4 hours ago

Yes, clang is fully supported (and always has been. We actually supported clang before gcc).

All tools can be customized in the project.yml file. You'll want to specify your arguments for the specific tool call, etc. You can see examples of the Ceedling tool definitions section of the CeedlingPacket.md documentation.