bazel-contrib / bazel-contrib/rules_foreign_cc

Feature Request: capture cmake configure logs

Open
#1,131 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Starlark
Stars
737
Forks
270
PR merge metrics
No merged PRs in 30d

Description

Currently, foreign_rules_cc captures the cmake output log ([CMake.log](https://github.com/bazelbuild/rules_foreign_cc/blob/51152aac9d6d8b887802a47ec08a1a37ef2c4885/foreign_cc/private/framework.bzl#L617-L620); this is helpful for some types of debugging. However, I was hoping it could also capture the cmake configure logs; these are the files that in <3.26 versions of cmake are `BUILD_DIR/CMake{Output,Error}.log` and >= 3.26 are supposed to be retrieved via the [cmake-configure-log](https://cmake.org/cmake/help/latest/manual/cmake-configure-log.7.html) file api. They're pretty useful in debugging packages, but currently (I think?) they're lost during the cleanup.

Contributor guide

Open the contributing guide

Research direction

Start in foreign_cc/private/framework.bzl around lines 617-620, where CMake.log is captured, and read the CMake configure-log documentation linked in the issue. Determine how to retrieve BUILD_DIR/CMakeOutput.log and CMakeError.log for older CMake versions and the cmake-configure-log file API for CMake 3.26+, before cleanup; done means those configure logs are preserved for debugging.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.