Using Homebrew with alternate GCC

前端 未结 4 907
走了就别回头了
走了就别回头了 2020-12-04 20:47

I\'ve installed gcc-4.6 using the homebrew-alternatives gcc formula, but I can\'t seem to get it to use that GCC to install other formulas. Specifi

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-04 20:50

    It looks like the latest versions of Homebrew now support the HOMEBREW_CC and HOMEBREW_CXX environment variables.

    So now you can do the following:

    $ HOMEBREW_CC=gcc-4.2 HOMEBREW_CXX=g++-4.2 brew install ice
    

提交回复
热议问题