Skip to content

Switch to using v145 as the default compiler for Windows - #71

Draft
filipppavlov wants to merge 2 commits into
mainfrom
v145
Draft

Switch to using v145 as the default compiler for Windows#71
filipppavlov wants to merge 2 commits into
mainfrom
v145

Conversation

@filipppavlov

Copy link
Copy Markdown

Update CMakePresets.json and TC config to use v145 compiler when building for Windows; fix compile errors/warnings when building with v145

Copilot AI lite review requested due to automatic review settings August 25, 2026 10:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Windows build configuration to default to the v145 toolset and applies a few code tweaks to eliminate compile errors/warnings that show up under the newer compiler/toolchain.

Changes:

  • Switch Windows CMake presets (toolchain + vcpkg triplets) to -145-* variants.
  • Update TeamCity Windows build bootstrap parameters to prefer the v145 toolset via VS_DEV_BAT_SWITCHES.
  • Fix a handful of C++ compile warnings/errors (HRESULT-sized return types and pow float overload selection).

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
trinity/Tr2RenderTarget.h Changes GenerateMipMaps/Resolve return type to int32_t for toolchain compatibility.
trinity/Tr2RenderTarget.cpp Updates implementations to match the new int32_t signatures.
trinity/Tr2DepthStencil.h Changes Create return type to int32_t.
trinity/Tr2DepthStencil.cpp Updates implementation signature to match header.
trinity/Eve/SpaceObject/EveMissileWarhead.cpp Adjusts pow call to use float exponent (2.f) to avoid float/double warnings.
trinity/Eve/SpaceObject/Children/EveChildCloud2.cpp Adjusts pow call to use float exponent (3.f) to avoid float/double warnings.
CMakePresets.json Switches Windows chainload toolchain + vcpkg triplets to -145- variants.
.teamcity/Windows/Project.kt Changes Windows build parameters to default VS_DEV_BAT_SWITCHES to a v145-oriented -vcvars_ver.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.



class CarbonBuildWindows(buildName: String, configType: String, preset: String) : BuildType({
class CarbonBuildWindows(buildName: String, configType: String, preset: String, vsDevBatSwitches: String = "-arch=x64 -vcvars_ver=14.51") : BuildType({
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