how do i build gcc on a mac?

前端 未结 4 2280
一生所求
一生所求 2021-02-19 13:09

I\'d like to build the latest version of gcc on a mac. I have the latest xcode but I\'m looking for some of the c++0x features that are in more recent versions (the lambda funct

4条回答
  •  情话喂你
    2021-02-19 14:05

    Add GCC support to a fresh Xcode 4.2 installation using this homebrew formula:

    brew install https://raw.github.com/Homebrew/homebrew-dupes/master/apple-gcc42.rb
    

    Upgrading from Xcode 4.1 doesn't drop existing GCC support, so this formula is only useful if you're working with a fresh 4.2+ installation.

提交回复
热议问题