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.

CC2340R5-Q1: Copy compiler include options from Debug configuration to Release and vice versa

Part Number: CC2340R5-Q1

Hello Team,

I need your support to save a lot of productive time. I want to copy the compiler include option settings from Debug build configuration to Release and vice versa. We waste a lot time in adding the same include path in both Debug and Release. Basically, there is no difference between Release and Debug builld for us. All settings are same, so we want to make changes in 1 build configuration and copy the same for other. Also, let me know how to set up default build configuration to either Release or Debug everytime I import a project ?

CCS Version : Version: 20.1.1.8__1.7.1

Thanks for your answer.

Regards

Rahul

  • Hello,

    Basically, there is no difference between Release and Debug builld for us. All settings are same, so we want to make changes in 1 build configuration and copy the same for oth

    The easiest thing is to create a new build configuration and the use the option to copy settings from an existing configuration when creating a new configuration. 

    Also, let me know how to set up default build configuration to either Release or Debug everytime I import a project ?

    You can you this workaround in the .ccsproject as mentioned below by Baltasar:

     RE: How to set the default "build configuration"? 

    Thanks

    ki

  • CCS Version : Version: 20.1.1.8__1.7.1

    Also please note that this is an old version of CCS 20. I would recommend updating to the latest CCS 21.0 for the latest fixes and enhancements.

  • Hi Ki,

    Thanks for the reply. Apparantly, setting the parameter <defaultConfiguration value="Release"/> in .ccsproject file worked.

    1) My project as has both Release and Debug configurations. My requirement is to enable the same compiler include options from Release to Debug without additional manual work in the Debug configuration every time I add a new path or remove existing one from Release configuration. For example, I want to add a new include path in Release build, but when I switch to Debug build I want the build process to automatically copy all include paths from Release build. The maximum difference at present between Release and Debug is optimization and some pre processor directives. Your answer works when I create a brand new configuration based on existing configuration, but in my case I would be editing existing configurations during the development phase. Please let me know the possibility in this scenario.

    2) Sure, we will evaluate improvements and roll out the new CCS release.

    I will await your reply for point 1. Thanks.

  • For #1, you basically want an easier way to manage multiple common build configurations at once. 

    I would suggest using build command files for this as mentioned in:

     RE: CCS: Managing files in a build configuration