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