[PR #1147] runtime: link the fixtures with no base relocations with /INCREMENTAL:NO (OLD-10053 / BUILD-1550) #1180

Open
opened 2026-11-26 20:20:22 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1147
Author: @ambroseautomation
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: carry/old-10053-incremental-no


📝 Commits (1)

  • 55aaab4 runtime: link the fixtures with no base relocations with /INCREMENTAL:NO (BUILD-1550)

📊 Changes

2 files changed (+55 additions, -4 deletions)

View changed files

📝 runtime/CMakeLists.txt (+9 -4)
➕ tests/test_runtime_incremental_link.py (+46 -0)

📄 Description

Claimed in the coordination issue as: OLD-10053 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7141743369)

What and why

Carries forward old-pr/10053 (draft #319, original commit author QemmHD preserved; indexed in #17; BUILD-1550), rebased cleanly onto current main.

Fixes clean Debug / RelWithDebInfo CMake+Ninja builds on Visual Studio 2026 18.6 (MSVC linker 14.51), which crashes with manifest.res : fatal error LNK1000: Internal error during IncrCalcPtrs on incremental relinks of images that have no base relocations:

  • Adds /INCREMENTAL:NO to the four relocation-less runtime test fixtures in runtime/CMakeLists.txt (tiny_game_fixed, tiny_tls_cb_only, dll_thread_calls, gameinput_host).
  • Adds tests/test_runtime_incremental_link.py to verify that every /FIXED or /NODEFAULTLIB target in runtime/CMakeLists.txt specifies /INCREMENTAL:NO.

Tested

  • python -I tests/test_runtime_incremental_link.py -v: 2 tests, OK.
  • python -I scripts/check_no_game_data.py runtime/CMakeLists.txt tests/test_runtime_incremental_link.py: exit 0 (no game data).

GPUs tested: n/a (CMake linker configuration + Python stdlib regression test on Windows 11 Pro 64-bit, Python 3.12.10)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — CMake runtime build fix)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1147 **Author:** [@ambroseautomation](https://github.com/ambroseautomation) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `carry/old-10053-incremental-no` --- ### 📝 Commits (1) - [`55aaab4`](https://github.com/ubiquitarianism/leonida/commit/55aaab47920d425ed70ba112abd124270bab6189) runtime: link the fixtures with no base relocations with /INCREMENTAL:NO (BUILD-1550) ### 📊 Changes **2 files changed** (+55 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `runtime/CMakeLists.txt` (+9 -4) ➕ `tests/test_runtime_incremental_link.py` (+46 -0) </details> ### 📄 Description Claimed in the coordination issue as: OLD-10053 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7141743369) ### What and why Carries forward `old-pr/10053` (draft #319, original commit author `QemmHD` preserved; indexed in #17; BUILD-1550), rebased cleanly onto current `main`. Fixes clean Debug / RelWithDebInfo CMake+Ninja builds on Visual Studio 2026 18.6 (MSVC linker `14.51`), which crashes with `manifest.res : fatal error LNK1000: Internal error during IncrCalcPtrs` on incremental relinks of images that have no base relocations: - Adds `/INCREMENTAL:NO` to the four relocation-less runtime test fixtures in `runtime/CMakeLists.txt` (`tiny_game_fixed`, `tiny_tls_cb_only`, `dll_thread_calls`, `gameinput_host`). - Adds `tests/test_runtime_incremental_link.py` to verify that every `/FIXED` or `/NODEFAULTLIB` target in `runtime/CMakeLists.txt` specifies `/INCREMENTAL:NO`. ### Tested - `python -I tests/test_runtime_incremental_link.py -v`: 2 tests, OK. - `python -I scripts/check_no_game_data.py runtime/CMakeLists.txt tests/test_runtime_incremental_link.py`: exit 0 (no game data). GPUs tested: n/a (CMake linker configuration + Python stdlib regression test on Windows 11 Pro 64-bit, Python 3.12.10) AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a — CMake runtime build fix) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1180
No description provided.