peek at passed gcc arguments on build and run

Discussion in 'Mac Programming' started by moralreef, Feb 27, 2012.

  1. macrumors newbie

    Joined:
    Feb 27, 2012
    #1
    hello team.

    I'm looking to gain a lot more knowledge in my passing ignorance of compiler arguments and commands, and thought the likely best way to start is to tweak the compiler instructions in xcode 4.2 and see how it affects what is feeding into gcc/clang.

    any idea how to achieve this?
     
  2. macrumors regular

    Joined:
    Jun 11, 2011
    Location:
    Chicago
    #2
    If I have a correct understanding of what you're trying to achieve:
    compile with -v -Wall

    This will give you a verbose output of everything the compiler is doing.
     
  3. macrumors G5

    gnasher729

    Joined:
    Nov 25, 2005
    #3
    "Show Log Navigator" (command-7), click on one of the "Build" items, switch on "All" instead of "Recent" and "All Messages", click on the line that built an item you are interested in, and expand with the "multi-line" symbol on the right.
     

Share This Page