Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Docs on enabling LTO (-flto) with clang++

オープン
#22 コメント 4 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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-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

主要言語
言語のデータがありません
スター
110
フォーク
17
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

mapbox/cpp のほかの issue

mapbox/cpp の issue をすべて見る

似ている issue

Build System の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。