Setting GCC 4.2 as the default compiler on Mac OS X Leopard

前端 未结 6 1694
小蘑菇
小蘑菇 2020-11-29 18:53

I\'m sure there must be a way to do this. As you are probably aware the latest versions of Xcode (and in fact I think all versions of Xcode) on Leopard come with GCC 4.0.1 a

6条回答
  •  [愿得一人]
    2020-11-29 19:59

    I might be wrong, but I thought that was what Xcode-select was for?

    xcode-select --switch /path_to_tool_suite
    

    As I said, I'm not 100% on this, but I believe it will set the default for all programs including Terminal and other apps that calls into the OS to use a compiler.

提交回复
热议问题