Skip to content

Conversation

@nickclark2016
Copy link
Member

What does this PR do?

Deprecates the NoCopyLocal flag in favor of a dedicated API, allowcopylocal.

How does this PR change Premake's behavior?

No breaking changes, just deprecation.

Anything else we should know?

Preparation for 5.0

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 December 22, 2025 01:52

function config.isCopyLocal(cfg, linkname, default)
if cfg.flags.NoCopyLocal then
if cfg.allowcopylocal == p.OFF then
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems to assume that 'Default' is 'On'

Copy link
Member Author

Choose a reason for hiding this comment

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

"Default" would be handled by the underlying exporter's behavior

scope = "config",
kind = "string",
allowed = {
"Default",
Copy link
Contributor

Choose a reason for hiding this comment

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

Wonder at which point we want explicit 'Default' value.
premake can have default = 'On'.

@nickclark2016 nickclark2016 force-pushed the deprecate-no-copy-local branch 2 times, most recently from 8aec425 to 48576e3 Compare December 22, 2025 02:46
@nickclark2016 nickclark2016 force-pushed the deprecate-no-copy-local branch from 48576e3 to 26d6418 Compare December 22, 2025 03:27
@samsinsane samsinsane merged commit 6ecb1d4 into premake:master Dec 23, 2025
51 checks passed
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.

3 participants