Skip to content

Build with Visual Studio 2026 and premake 5.0.0 - #1974

Open
nbeck-SMT wants to merge 2 commits into
mono:mainfrom
nbeck-SMT:build/vs2026-premake5
Open

nbeck-SMT wants to merge 2 commits into
mono:mainfrom
nbeck-SMT:build/vs2026-premake5

Conversation

@nbeck-SMT

Copy link
Copy Markdown
Contributor

This PR moves the whole project to VS2026 and Premake 5.0.0.

Note: I used Claude AI because I don't know enough about the whole build infrastructure. I tried to check as much as I could and tested on Windows and Linus, but I don't have access to a Mac.

nbeck-SMT and others added 2 commits November 12, 2026 13:58
Visual Studio 2026 becomes the default toolchain on every platform, and
premake moves to 5.0.0, the first release that both has the vs2026 action
and runs on Ubuntu 22.04 (beta8 needs glibc 2.38).

- build.sh downloads premake 5.0.0 on all platforms (the x64 package on
  Intel Macs), checks the cached version exactly, and uses the renamed
  gmake action.
- Visual Studio 2026 generates CppSharp.slnx: handle it in build.sh,
  .gitignore and the solution items, and port the solution items
  extension to the .slnx writer.
- Replace the flags API removed in premake 5.0.0.
- Fix the post-build step copying the Clang builtin headers: use
  {COPYDIR}, drop the stray % that made the cleanup use a wrong path,
  and let the copy create the folder so cp does not nest it.
- Detect Visual Studio 2026 when building LLVM (CMake generator, .slnx
  solution) and reuse the Visual Studio 2022 LLVM packages, as MSVC 14.5x
  is binary compatible with 14.3x.
- Add VisualStudioVersion.VS2026; Latest now maps to it.
- CI: Windows jobs run on windows-2025-vs2026.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nbeck-SMT
nbeck-SMT force-pushed the build/vs2026-premake5 branch from 96d8bfe to e0b7b47 Compare November 12, 2026 12:59

This branch has not been deployed

No deployments
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.

1 participant