Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vs*] Allow to have per-file cdialect/cppdialect. #2194

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

Jarod42
Copy link
Contributor

@Jarod42 Jarod42 commented Mar 21, 2024

What does this PR do?

Handle cdialect/cppdialect in per-file configuration for visual studio generators

How does this PR change Premake's behavior?

Only affect visual studio generators

Anything else we should know?

cppdialect tested with dedicated project https://github.com/Jarod42/premake-sample-projects/actions/runs/8377114412

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

@@ -1485,7 +1487,7 @@

local contents = p.capture(function ()
p.push()
p.callArray(fileFunc, cfg, file)
p.callArray(fileFunc, nil, file)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are no cfg here, so it is actually nil.

@samsinsane samsinsane merged commit ac27f70 into premake:master Mar 22, 2024
12 checks passed
@Jarod42 Jarod42 deleted the vs_per_file_cdialect branch March 22, 2024 14:08
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