Builds without a build type are unoptimized: the README's commands and CI's main job
メンテナーはふだん 1 日以内に返信
@SizzleUnrlsd がすでに取り組んでいます。
2026年10月15日 から。
評価
この issue はまだ評価されていません。
説明
Neither CMakeLists.txt nor the stack analyzer sets a default CMAKE_BUILD_TYPE. With a single-config generator such as Ninja, an empty build type compiles without optimization: no -O flag. Two builds are affected:
- the README's BUILD commands, for Ubuntu 24.04 and macOS;
- CI's main job (
build.yml, "Build on ubuntu-24.04 / macos-14"). Itscmake --build build --config Releasehas no effect, because Ninja ignores--config.
The release archives (Dockerfile.release-binaries) and the coverage job pass -DCMAKE_BUILD_TYPE=Release.
Observed
ctrace --compile-commands <CoreTrace's 22 translation units> --invoke ctrace_stack_analyzer, on Linux x86_64 (32 cores) with LLVM 20.1.2, a fresh cache, and one run at a time:
| Stack analyzer | No build type | Release |
|---|---|---|
| v0.22.0 | 29 min 39 s | 3 min 16 s |
main 0668fb8 |
5 min 18 s | 1 min 33 s |
The run of #169 that was still going after 42 minutes was an unoptimized build too.
To do
- When
CMAKE_BUILD_TYPEis empty and the generator is single-config, default it toRelease. - Remove the
--config Releasethat does nothing from the main CI job. - Decide which build type CI's main job tests. Today it builds the analyzers that
ctracelinks with their assertions enabled (noNDEBUG), and aReleasedefault would turn them off. To keep them, the job can pass its build type explicitly.
Acceptance
- The README's commands build an optimized
ctrace. - The main CI job states the build type it tests.
- 主要言語
- C++
- スター
- 5
- フォーク
- 4
- 平均マージ
- 1時間 9分
- マージ済み PR(30日)
- 81
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CoreTrace/coretrace のほかの issue
-
chore good first issue severity/minor
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
build severity/minor
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
CoreTrace/coretrace#176 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
build good first issue severity/minor
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
test: add unit tests for ctrace::RunDirectory対応中かも @tecnolgd が 3 日前に担当しました。 オープンgood first issue test
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
CoreTrace/coretrace#164 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Release a macOS disk image (.dmg) for Apple silicon対応中かも @SizzleUnrlsd が今日担当しました。 オープンbuild enhancement
CoreTrace/coretrace#198 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
CoreTrace/coretrace の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
NVIDIA-RTX/NRI#277 ·
メンテナーはふだん 1 日以内に返信
-
os:Linux
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
acceptable_buffer_backends: unknown backend names are silently ignored対応中かも @mini-1235 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
ros2/rmw_fastrtps#945 ·
メンテナーはふだん 1 日以内に返信