Get string version of CFLAGS/CXXFLAGS

Sysprogs forums Forums VisualGDB Get string version of CFLAGS/CXXFLAGS

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #29601
    Jose Cazarin
    Participant

    Hello, I was trying to get a string version of the C/C++ flags used in the Makefile so I can print them in my code, but I’m running in circles a bit.

    How could I achieve this? Will I need to edit the Makefile to call a custom script using the shell and use this script to create that string?

     

     

    Thanks for the help!

    #29602
    support
    Keymaster

    Hi,

    Sorry, there is no special GUI or command to achieve this. You should be able to get this working by patching the Makefile to escape relevant internal variables and pass them to gcc as preprocessor macros, however it requires a good understanding of the inner workings of GNU Make and is unfortunately outside the scope of VisualGDB support.

    #29608
    Jose Cazarin
    Participant

    Ok, thank you

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.