how do i build gcc on a mac?

前端 未结 4 2267
一生所求
一生所求 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:01

    I would suggest building it yourself (Adam details how to do so). This will give you fine control on where to install and all the options you want to select. My experience from having multiple versions of gcc is that, if care is not taken apple's version of gcc can be damaged.

    To speed up gcc installation you might want to look at --enable-languages option. If there are languages you don't need installed with the new gcc then you may not want to select them.

提交回复
热议问题