Skip to content

Enable export compile command#151

Merged
wusatosi merged 1 commit intomainfrom
compile-command
Mar 31, 2025
Merged

Enable export compile command#151
wusatosi merged 1 commit intomainfrom
compile-command

Conversation

@wusatosi
Copy link
Copy Markdown
Member

Description

Suggested by @linusboehm and agreed on Mar 31th meeting, we add export compile command to CMake preset.

compile_commands.json is in top level ignore file already.

Basis:

Decision: Try enabling compile_commands.json export in the presets. If it doesn’t cause any problems, merge it. And add compile_command.json to ignore file.

Testing

When running any presets, a compile_command.json would appear under the build directory.

Meta

  • If all approvals are obtained and the PR is green, any Beman member can merge the PR.

Copy link
Copy Markdown
Contributor

@linusboehm linusboehm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compile commands was generated as expected.
lgtm

@neatudarius
Copy link
Copy Markdown
Member

And add compile_command.json to ignore file.

Reminder - CC @wusatosi

Copy link
Copy Markdown
Member

@neatudarius neatudarius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@wusatosi
Copy link
Copy Markdown
Member Author

wusatosi commented Mar 31, 2025

And add compile_command.json to ignore file.

Reminder - CC @wusatosi

See:

compile_commands.json is in top level ignore file already.

@wusatosi wusatosi merged commit ffc5343 into main Mar 31, 2025
134 checks passed
@wusatosi wusatosi deleted the compile-command branch March 31, 2025 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants