I created two build configurations a Debug and a Release in SES IDE.
Build > Build Configurations...
I wanted to select the DEBUG_OPTIMIZATIONS level for the Debug build configuration and the SPEED_OPTIMIZATIONS for the Release one.
In Project Explorer, select the top Solution then select the 'Debug' build Configuration
Project > Configure nRF Connect Project... > DEBUG_OPTIMIZATIONS > Configure > Save solution (if prompted)
Then in Project Explorer, select the top Solution then select the 'Release' build Configuration
Project > Configure nRF Connect Project... > SIZE_OPTIMIZATIONS > Configure > Save solution (if prompted)
However, when I go back and select the 'Debug' build configuration to view its optimisation setting I find
Project > Configure nRF Connect Project... > SIZE_OPTIMIZATIONS
NOT DEBUG_OPTIMIZATIONS as expected.
It looks like whichever build configuration is set last overwrites the other one.
Can you please tell me what I am doing wrong.
Thank you.
Mohamed Belaroussi