Build types from CMake presets, and from lukka/run-cmake's preset inputs

Đang mở
#599 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
67/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cmake, python
Lĩnh vực
build-system, tooling

Hướng nghiên cứu

Start with build_systems/cmake/presets.py and trace how it reads CMake configure and build presets, including lukka/run-cmake preset inputs. Check how single-config CMAKE_BUILD_TYPE and multi-config build presets are handled. Done means the amp shape reports Debug and RelWithDebInfo for the described preset cases.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem

amp-embedded-infra-lib: every combination says "no build type specified". Its CI uses lukka/run-cmake with configurePreset / buildPreset (for example host-Debug-WithPackage), and its presets set CMAKE_BUILD_TYPE or use multi-config build presets.

Expected

cmake --preset X, cmake --build --preset X and lukka/run-cmake's preset inputs give the build type from the preset (build_systems/cmake/presets.py).

Done when

The amp shape reports Debug and RelWithDebInfo.

Split from #489. Checked against main at 4b4dbb6c on 2026-12-03: the cases above were reproduced with small fixtures or found in the code.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt

Ngôn ngữ chính
Python
Star
4
Fork
1
Merge trung bình
6 giờ 31 phút
Pull request đã merge (30 ngày)
238

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cpp-best-practices/project_validator

Tất cả issue của cpp-best-practices/project_validator

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.