|Martin Errenst 7f5a8283af add some comments||11 months ago|
|.gitignore||11 months ago|
|CMakeLists.txt||11 months ago|
|Makefile||11 months ago|
|Readme.md||11 months ago|
|dummy.cpp||11 months ago|
|main.cpp||11 months ago|
Print as much information about the build process as you can get from within the binary. Espacially, compiler flags - they are quite important when comparing performance. The information should be included in the binary, so it can't be lost and is right next to, for example, a benchmark result. So there's no chance to mix up different flags.
Another option would be -g -grecord-gcc-switches and search for DW_AT_producer. Sadly, this doesn't produce the wanted information with clang:
Passing the CPPFLAGS and so on as -DMY_FLAGS=.... to the compiler call will not include some information set by the compiler itself (compare the parameters set in the Makefile with the printed output).