Skip to content

fix(build): fix MSVC tests and Windows driver packaging - #18

Merged
ReenigneArcher merged 2 commits into
masterfrom
codex/fix-windows-onecore-link
Dec 4, 2026
Merged

ReenigneArcher merged 2 commits into
masterfrom
codex/fix-windows-onecore-link

Conversation

@ReenigneArcher

@ReenigneArcher ReenigneArcher commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Description

The Windows unit-test and driver-package jobs fail to link because the Microsoft Windows SDK does not ship kernelbase.lib. Link both MSVC and MinGW builds against OneCore, which provides CompareObjectHandles in both toolchains. Initial Windows CI run

Once the package links the tools, MSVC encounters a second failure in two IddCx cursor callbacks. Declare the monitor lookup helper’s iterator return type explicitly so both callers can use it before its definition. First PR CI run

Screenshot

Issues Fixed or Closed

Roadmap Issues

Testing

  • Verified that Windows SDK 10.0.26100.0 exports CompareObjectHandles from OneCore.lib.
  • Built and ran all 245 CTest cases with MSVC 19.44 and all 245 with MSYS2 UCRT64. Both runs included the generated INF consistency check.
  • The first PR run passed the hosted MSVC and Linux tests. The Windows Package job reached the driver compile and reported C3779 in the cursor callbacks.
  • Checked the changed driver declaration with clang-format.
  • The final hosted run passed Windows MSVC tests, Linux tests, and the Windows WDK package job. The run uploaded the libvirtualdisplay-windows-x64 artifact. Passing CI run

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Tests have been added or updated for new or modified functionality, including regression tests for bug fixes

AI Usage

See our AI usage policy.

  • AI tools were used while preparing this PR

Codex (GPT-6) investigated the build failure, implemented the CMake change, and ran the local validation.

@ReenigneArcher ReenigneArcher changed the title fix(build): link Windows targets against OneCore fix(build): fix MSVC tests and Windows driver packaging Dec 4, 2026
The Windows SDK exposes CompareObjectHandles through OneCore.lib.
Use the same import library for MSVC and MinGW so the Windows unit
tests and driver tools link on the stock Windows SDK.
MSVC must know the helper's return type when compiling the earlier
cursor callbacks. Return the monitor map iterator explicitly.
@ReenigneArcher
ReenigneArcher force-pushed the codex/fix-windows-onecore-link branch from d604722 to ccd0eb2 Compare December 4, 2026 20:13
@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2026

Copy link
Copy Markdown

@ReenigneArcher
ReenigneArcher merged commit 30ecfbe into master Dec 4, 2026
13 checks passed
@ReenigneArcher
ReenigneArcher deleted the codex/fix-windows-onecore-link branch December 4, 2026 20:18
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