This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: embedding compile options in program


On 9 June 2013 23:29, Ilya Shlyakhter wrote:
> 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.

No, but see the -grecord-gcc-switches option:

http://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html#index-grecord_002dgcc_002dswitches-564


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]