Skip to content

Adds a tested compilation database generator#2636

Open
nickclark2016 wants to merge 1 commit intopremake:masterfrom
nickclark2016:compile-commands-generator
Open

Adds a tested compilation database generator#2636
nickclark2016 wants to merge 1 commit intopremake:masterfrom
nickclark2016:compile-commands-generator

Conversation

@nickclark2016
Copy link
Member

What does this PR do?

Brings a compilation database (compile_commands.json) generator to premake-core.

How does this PR change Premake's behavior?

Changes the output format of gcc.getincludedirs to remove spaces between -isystem and path and -idirafter and path.

Anything else we should know?

Adds an API to get structured output for include directories. May be worth investigating for other "compound" flags.

Did you check all the boxes?

  • Focus on a single fix or feature; remove any unrelated formatting or code changes
  • Add unit tests showing fix or feature works; all tests pass
  • Mention any related issues (put closes #XXXX in comment to auto-close issue when PR is merged)
  • Follow our coding conventions
  • Minimize the number of commits
  • Align documentation to your changes

You can now support Premake on our OpenCollective. Your contributions help us spend more time responding to requests like these!

@nickclark2016 nickclark2016 requested a review from a team March 4, 2026 17:51
@nickclark2016 nickclark2016 force-pushed the compile-commands-generator branch 2 times, most recently from ae21425 to 26587e8 Compare March 5, 2026 18:00
@nickclark2016 nickclark2016 force-pushed the compile-commands-generator branch from 26587e8 to 442443b Compare March 5, 2026 18:46
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.

2 participants