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