|
|
|
|
|
|
|
|
|
|
Re: RTSC XDC Module around SPLINT [message #794132 is a reply to message #793614] |
Wed, 08 February 2012 23:56   |
Dave Russo Messages: 172 Registered: July 2009 |
Senior Member |
|
|
On 2/8/2012 2:52 AM, Missing name Mising name wrote:
> Hello, sorry it has been 6 months without any contact.
>
> Hopefully, I'll be back on this soon.
>
> We created a IFilter that changes the compilation flags depending on if
> the file extension is .cpp or .c.
>
> This was because the ccOpts was -std=c99 and g++ doesn't like that!
>
> I can add the filter as an attachment, to show what we did, if you're
> interested.
>
> Do you think that it would be useful to make ITarget have separate
> options for different compilers.
So ... you have a package with a mix of C and C++ sources and you've
configured your target(s) to add -std=c99 (for the C code) but you can't
use this for C++ code (because g++ rightly complains), right?
>
> Something like ccOpts and cppcOpts?
>
This might be the best solution. The target certainly knows if the
source file is an asm, C, or C++ source file and it already has separate
asmOpts and ccOpts. So, it makes sense to add options specific to C++.
> I will be in contact about the splint and doxygen modules.
>
> I was thinking the would follow xdc.filters folder structure?
How about xdc.target.filters.[splint|doxygen]?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03122 seconds