From e5b52949b2c96f4e6ab619bcb7fbcbecad55ae61 Mon Sep 17 00:00:00 2001 From: Martin Errenst Date: Sun, 27 Aug 2017 14:12:34 +0200 Subject: [PATCH] add some notes in the readme --- readme | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 readme diff --git a/readme b/readme new file mode 100644 index 0000000..cdf17b7 --- /dev/null +++ b/readme @@ -0,0 +1,6 @@ +Another option would be -g -grecord-gcc-switches and search for DW_AT_producer. +Sadly, this doesn't produce the wanted information with clang: + clang++: DW_AT_producer : (indirect string, offset: 0x0): clang version 3.9.1 (tags/RELEASE_391/final) + g++: DW_AT_producer : (indirect string, offset: 0x37): GNU C++ 4.9.4 -mtune=generic -march=x86-64 -g -O3 -frecord-gcc-switches -fstack-protector-strong + +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).