Docs on enabling LTO (-flto) with clang++
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- cpp
調査の方向性
issue のチェックリストと、参照されている spatial-algorithms の pull request から始めてください。Linux と OS X のツールチェーン要件、フラグ、環境変数、リンカーエラーに関するガイダンスを確認してください。ドキュメントは、一覧にあるセットアップとトラブルシューティングの詳細をすべて網羅した時点で完了です。
索引モデルが issue の本文から書いたものです。
説明
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-arRANLIB=/path/to/llvm-ranlib) -fltoin the CXXFLAGS
OS X details
- Apple built in compiler or clang++ via mason
-fltoin 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)
- 主要言語
- 言語のデータがありません
- スター
- 110
- フォーク
- 17
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mapbox/cpp のほかの issue
-
glossary
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
-
Docs on ABIs オープン
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
似ている issue
-
Update to NCCL 2.32 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
conda-forge/nccl-feedstock#166 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
dsx-ai-factory/infra-controller#6694 ·
-
bug build
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
facebookincubator/velox#19143 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
pydantic/pydantic-ai#8636 ·
-
0.kind: enhancement 9.needs: package (update)
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100