Skip to main content
gsieb.1
Associate II
July 22, 2021
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
July 23, 2021

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.
July 23, 2021

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
July 23, 2021

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
July 23, 2021

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!