embedding compile options in program

Ilya Shlyakhter ilya_shl@alum.mit.edu
Sun Jun 9 22:29:00 GMT 2013


Is there a conditional define that expands to  a string of the full
gcc command-line used to compile the given .c/.cc file?  I'd like to
embed in the executable the exact compilation options used to build
it.
Thanks for help,
ilya



More information about the Gcc-help mailing list