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

Builds without a build type are unoptimized: the README's commands and CI's main job

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

メンテナーはふだん 1 日以内に返信

@SizzleUnrlsd がすでに取り組んでいます。

2026年10月15日 から。

評価

この issue はまだ評価されていません。

説明

build severity/minor

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"). Its cmake --build build --config Release has 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_TYPE is empty and the generator is single-config, default it to Release.
  • Remove the --config Release that does nothing from the main CI job.
  • Decide which build type CI's main job tests. Today it builds the analyzers that ctrace links with their assertions enabled (no NDEBUG), and a Release default 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

環境構築

はじめの一歩

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

CoreTrace/coretrace のほかの issue

CoreTrace/coretrace の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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