Skip to content

Fix getdefines calls for Ninja, compile commands, and CodeLite - #2801

Merged
samsinsane merged 1 commit into
premake:masterfrom
nickclark2016:unify-getdefines-calls
Sep 8, 2026
Merged

Fix getdefines calls for Ninja, compile commands, and CodeLite#2801
samsinsane merged 1 commit into
premake:masterfrom
nickclark2016:unify-getdefines-calls

Conversation

@nickclark2016

Copy link
Copy Markdown
Member

What does this PR do?

Fixes how getdefines is called amongst exporters. Ensures the relevant config is passed.

How does this PR change Premake's behavior?

Addresses issues where defines were reliant on a passed config.

Anything else we should know?

Resolves #2800

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 September 7, 2026 18:44
@samsinsane
samsinsane merged commit ba92dd0 into premake:master Sep 8, 2026
131 checks passed

@Jarod42 Jarod42 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe comment from msc.getdefines(defines, cfg) (the one telling cfg=nil is deprecated) can be removed too.

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.

[Windows][Ninja] Ninja on Windows doesn't respect characterset option.

3 participants