While writing the build script to handle release builds, I realized the need to capture build reports separately from the build artifacts. To this end, I’ve created a directory tree structure that resembles:
app
+--build
+--debug
+--release
+--reports
+--setup
+--src
The reports directory contains various pieces of information related to the build. I’m going to drop the output of CppUnit / NUnit into this directory (which is under version control).
One other piece of information that I’m going to drop in here is the linker MAP file. After re-reading some of John Robbins’ earlier work on this stuff, I’ve gotten the MAP religion. For those of you who need a refresher course on MAP files and how they help you find bugs in code that you’ve shipped, you should read:
- John’s original BugSlayer column that describes MAP files.
- John’s BugSlayer column that describes a utility that he wrote: PDB2MAP that generates MAP files from PDB files.
- Read Chapter 8 of John’s book which talks about how MAP files can be used either manually or with John’s CrashFinder utility.