Skip to content

Feature Request: Generate compile_commands.json from Build Log (Post-Processing Mode) #644

@kchevali

Description

@kchevali

Problem Statement

Bear is an excellent tool for generating this file by wrapping the build command. However, in our specific production build environment, we have a strict policy against introducing any wrappers around our core build tools (e.g., gmake) for our nightly builds. These are considered "production builds" and must remain pristine and unaltered.

Current bear Usage Limitation

While bear's wrapper functionality is powerful, it prevents us from integrating it directly into our existing build pipelines due to the aforementioned policy. This means developers currently have to manually generate compile_commands.json (if possible) or work with less precise IntelliSense, which impacts productivity.

Desired Feature: Post-Processing Mode

We are seeking a mode or functionality within bear (or a related tool/workflow) that would allow us to generate compile_commands.json by parsing an existing build log rather than acting as a real-time wrapper around the build command itself.

Question

Does bear currently offer any functionality that could achieve this "post-processing" of a build log to generate compile_commands.json? If not, would this be a feature the bear development team would consider adding or providing guidance on how to implement?

We believe this would be a valuable addition for organizations with similar build constraints.

Thank you for your time and consideration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions