Skip to content

Commit 61c269a

Browse files
committed
Enable the segment heap in VS2026 (it's now Microsoft's default for new projects)
1 parent e43581e commit 61c269a

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

kmake/src/Exporters/VisualStudioExporter.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,9 @@ export class VisualStudioExporter extends Exporter {
714714
this.p('</Link>', indent + 1);
715715
this.p('<Manifest>', indent + 1);
716716
this.p('<EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>', indent + 2);
717+
if (Options.visualStudioVersion == VisualStudioVersion.VS2026) {
718+
this.p("<EnableSegmentHeap>true</EnableSegmentHeap>", indent + 2);
719+
}
717720
this.p('</Manifest>', indent + 1);
718721

719722
this.p('</ItemDefinitionGroup>', indent);
@@ -1093,6 +1096,9 @@ export class VisualStudioExporter extends Exporter {
10931096
this.p('</ClCompile>', 2);
10941097
this.p('<Manifest>', 2);
10951098
this.p('<EnableDpiAwareness>PerMonitorHighDPIAware</EnableDpiAwareness>', 3);
1099+
if (Options.visualStudioVersion == VisualStudioVersion.VS2026) {
1100+
this.p("<EnableSegmentHeap>true</EnableSegmentHeap>", 3);
1101+
}
10961102
this.p('</Manifest>', 2);
10971103
this.p('</ItemDefinitionGroup>', 1);
10981104
}

lib/kmake/Exporters/VisualStudioExporter.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/kmake/Exporters/VisualStudioExporter.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)