Docs on enabling LTO (-flto) with clang++
まだ誰も着手していません。
- 主要言語
- 言語のデータがありません
- スター
- 110
- フォーク
- 17
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Getting Link Time optimization working takes certain combinations of modern tools and build settings. It would be great to have some general docs on this so that LTO is demystified and more commonly used.
Doc should cover:
### Linux details
- upgraded binutils gold (can be installed via mason)
- at least clang++ 3.9.1 via mason
- llvm-ar and llvm-ranlib on path (and set in environment `AR=/path/to/llvm-ar` `RANLIB=/path/to/llvm-ranlib`)
- `-flto` in the CXXFLAGS
### OS X details
- Apple built in compiler or clang++ via mason
- `-flto` in the CXXFLAGS and LDFLAGS
#### Troubleshooting:
This error indicates that the linker does not understand the LTO format. This will happen on linux if you've not installed binutils from mason.
```
file.o: file not recognized: File format not recognized
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
```
Refs https://github.com/mapbox/spatial-algorithms/pull/10
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
issue のチェックリストと、参照されている spatial-algorithms の pull request から始めてください。Linux と OS X のツールチェーン要件、フラグ、環境変数、リンカーエラーに関するガイダンスを確認してください。ドキュメントは、一覧にあるセットアップとトラブルシューティングの詳細をすべて網羅した時点で完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp
- 領域
- build-system, documentation
- issue の種類
- ドキュメント
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100