Skip to content

ports/windows: Allow variant override of common config defines.#44

Draft
andrewleech wants to merge 1 commit intomasterfrom
pr/ports-windows-variant-overrides
Draft

ports/windows: Allow variant override of common config defines.#44
andrewleech wants to merge 1 commit intomasterfrom
pr/ports-windows-variant-overrides

Conversation

@andrewleech
Copy link
Copy Markdown
Owner

Summary

Wraps most of the unconditional config defines in mpconfigport.h with #ifndef/#endif guards so a port variant can override them via its own mpconfigvariant.h. Brings the windows port into line with what the unix port already does. Needed by minimal/specialised variants that want to disable e.g. helpers, hashlib, json without patching the shared port config.

Defaults are preserved; behaviour for the existing standard variant is unchanged.

Testing

Standard variant build (no behaviour change); a downstream variant that overrides several defines now compiles without warnings.

Wrap most of the unconditional config defines in mpconfigport.h with
#ifndef/#endif guards so that a port variant can override them via its
own mpconfigvariant.h. This brings the windows port into line with what
the unix port already does and is needed by minimal/specialised
variants that want to disable e.g. helpers, hashlib, or json without
patching the shared port config.

Defaults are preserved; behaviour for the existing standard variant is
unchanged.

Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
@andrewleech andrewleech force-pushed the pr/ports-windows-variant-overrides branch from b7fd85c to 26c352b Compare April 22, 2026 04:01
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