Skip to main content
gsieb.1
Associate II
Jul 22, 2021 10:46 PM UTC
Solved

How to compare Build Configurations

I've inherited a project that contains 10 build configurations. In the STM32CubeIde properties windows I cannot find any differences between a couple of the configurations. There are so many settings in various windows, tabs, etc. Instead of selecting each property and then switching between configurations in the drop-down list to check the differences one-by-one, I was hoping to be able to export all settings to an .xls, .xml or .txt file so I can quickly compare the settings side-by side. Is there a way to do this? Thanks!

This topic has been closed for replies.
TDK
TDKBest answer
Jul 23, 2021 1:23 AM UTC

No easy way to do this that I know about.

They are stored in the .cproject file as an XML tree. You could copy each configuration to a new file and use a diff tool. It's a little clunky, but it will show you all the differences.

"If you feel a post has answered your question, please click ""Accept as Solution""."

3 replies

Pavel A.
Jul 23, 2021 12:25 AM UTC

Perhaps do "headless" build of each configuration, capture logs to files and compare.

Look for differences in compiler settings and differences in files included or excluded in each configuration.

-- pa

TDK
TDKBest answer
Jul 23, 2021 1:23 AM UTC

No easy way to do this that I know about.

They are stored in the .cproject file as an XML tree. You could copy each configuration to a new file and use a diff tool. It's a little clunky, but it will show you all the differences.

"If you feel a post has answered your question, please click ""Accept as Solution""."
gsieb.1
gsieb.1Author
Associate II
Jul 23, 2021 12:15 PM UTC

Thank you both for responding.

Using Notepad++ I was able to easily find the "Build Configurations" I was looking for in the .cproject file, collapse each section by their <cconfiguration> tag so I could easily select and copy the entire section, and paste to an external file(s) for comparison. I quickly found the difference I was looking for!

Thank you!