|Martin Errenst 7f5a8283af add some comments||2 years ago|
|.gitignore||2 years ago|
|CMakeLists.txt||2 years ago|
|Makefile||2 years ago|
|Readme.md||2 years ago|
|dummy.cpp||2 years ago|
|main.cpp||2 years 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).