This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to perform a selective build in CodeComposer

Other Parts Discussed in Thread: CODECOMPOSER


the build in codecomposer is very slow... And I'm working only in 4 ".c" file... My project is formed of about 20 ".c" and 15 ".h" file... it is possible to build only some file that I select?

Or, the way I prefer if it is possible, there is a way to exclude some file to the build? So if I add a new file I don't need to manage with the option for add a new file to the build.

Many thanks

  • Hi,

    To exclude a .c/.cpp file from build (for headers you can't do this, but as if it's not included it's not used, there's no problem):

    Right click on the file -> Resource Configurations -> Exclude from Build

    Select all

    Regards

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------

    If my reply answers your question please click on the green button "Verify Answer".

  • Ok, many thanks.

    I try to do this and this way exclude some file ".c" from my custom build.

    But there is a problem: If my new code use some function that are write in the exclude file... They don't work and CCS give me error. 

    It is correct that it give me error if the build perform a clean before or if it is necessary to rebuild all to link the realative function.

    How can I undestand if, during a build, the CCS before perform a clean? And how can i change it?

    I search a way to rebuild only some file and keep the compilated other file... So If i keep the compilated 20 file and do not rebuild them but I rebuild only 2 or 3 ".c" file it is all more faster.

  • Hi Massimiliano,

    if you exclude a file from the build, but are trying to use a function/header file defined there, this will of course generate an error.  The linker will be looking for that function but you have excluded it!

    CCS normally tries to only build/rebuild when necessary.  You have various options such as build all, rebuild clean etc from the project menu.

    Please keep us informed whether these additional tips help.

    Best Regards,

    Lisa

  • Ok, many thanks! I will try and keep you informed.

    Many thanks

  • Hi Massimiliano,

    just thought I would check whether there were any updates with your enquiry.

    Best Regards,

    Lisa

  • I decide to build all workspace...

    In automatic CCS select only modified files, this is sufficient for me.

    Many thanks,

    Massimiliano

  • Hi Massimiliano,

    ok, thanks for the update and happy to hear you found a proceedure that works for you.

    All the best with development.

    Best Regards,
    Lisa