工作好きな情報系の雑記

LLVMをMacへインストールする

macの場合、インストールする時きつねさん本はだけでは歯が立たない。

代わりに下記サイトを参考にしてインストールする。

ちなみに、単純にインストールするだけなら下記サイトの通りbrewを使う。

If you are a developer using clang or gcc on OSX, the odds are good that you are using the Xcode build tools. These tools work well when compiling for your host machine. You can even get the iPhone SDK to work well enough for embedded development using ARM. However, I have encountered many cases
Installing LLVM/Clang on OSX - Embedded Artistry

前提として、/Users/ユーザー名/llvm以下にインストールすることにする。

ただし、makeするときはPythonのバージョンを2.x系にしておくこと。
pyenvとか使ってる時は globalを2.x系にしておく。

しかし、これでビルドすると総ファイルサイズが約30GBにもなるんだが…
流石にデカすぎないか?
どうすれば小さくなるんだ…
イマイチ最適化オプションのつけ方が分からない。

モバイルバージョンを終了