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