Skip to content

add c_standard/cpp_standard xml attributes. - #1301

Merged
Simn merged 4 commits into
HaxeFoundation:masterfrom
Apprentice-Alchemist:granular-cpp-standard
Jan 31, 2026
Merged

add c_standard/cpp_standard xml attributes.#1301
Simn merged 4 commits into
HaxeFoundation:masterfrom
Apprentice-Alchemist:granular-cpp-standard

Conversation

@Apprentice-Alchemist

Copy link
Copy Markdown
Contributor

No description provided.

@Apprentice-Alchemist
Apprentice-Alchemist force-pushed the granular-cpp-standard branch 2 times, most recently from 6b544de to f100081 Compare January 31, 2026 14:56

@tobil4sk tobil4sk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for looking into this! Related issues: #1124 #1200

Comment thread tools/hxcpp/Compiler.hx
if (inFile.mCStandard != null) {
if (BuildTool.isMsvc()) {
if (inFile.mCStandard > 17) {
args.push('/std:clatest');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is now hardcoded rather than being configurable by xml. Maybe the compiler can have something like <stdflag value="/std:" />.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Making this properly configurable (in a way that does not require special casing in the build tool) would be more complex than what you're suggesting, and I don't think that's worth doing right now.

Comment thread .github/workflows/test.yml Outdated
@Simn
Simn merged commit f394102 into HaxeFoundation:master Jan 31, 2026
132 checks passed
@Apprentice-Alchemist
Apprentice-Alchemist deleted the granular-cpp-standard branch January 31, 2026 22:03

<set name="HXCPP_CPP11" value="1" />
<set name="OBJDBG" value="-dbg" if="debug" />
<set name="OBJDBG" vlue="-dbg" if="debug" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is this a typo?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good catch, fixed!

Simn added a commit that referenced this pull request Feb 1, 2026
Simn added a commit that referenced this pull request Feb 1, 2026
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.

4 participants