Skip to content

Disable vcpkg applocal for static Windows builds - #1023

Merged
kblaschke merged 1 commit into
projectM-visualizer:masterfrom
thedavidweng:fix/windows-static-applocal
Sep 10, 2026
Merged

kblaschke merged 1 commit into
projectM-visualizer:masterfrom
thedavidweng:fix/windows-static-applocal

Conversation

@thedavidweng

@thedavidweng thedavidweng commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Fixes the recurring Windows CI flake where the Release build fails with MSB3073 (exit code 32, sharing violation) in the vcpkg post-build step, e.g. 'vcpkg.exe z-applocal --target-binary=.../projectM-unittest.exe'.

Root cause: that post-build step exists only to deploy dependent DLLs next to executables (VCPKG_APPLOCAL_DEPS in the vcpkg toolchain). The static matrix legs use -static triplets with a static CRT and fully static linking, so there are no DLLs to deploy, the step is a no-op that still opens the freshly linked exe, exposing the build to a file-lock race (Defender scan / concurrent post-build events of the two unittest projects).

Change: pass -DVCPKG_APPLOCAL_DEPS=OFF whenever matrix.libs == static, in both configure blocks (main build and C++ interface test). Shared legs are untouched and keep DLL deployment for ctest. No build-output change: static executables are self-contained, and install/upload steps are unaffected.

@kblaschke kblaschke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the fix!
I don't have a local Windows system to debug this issue, thought this was some kind of build runner issue as it only happened from time to time.

Will merge once the build checks are done.

@kblaschke
kblaschke force-pushed the fix/windows-static-applocal branch from d4ea178 to 1e7ef78 Compare September 10, 2026 11:00
@kblaschke
kblaschke merged commit 1e7ef78 into projectM-visualizer:master Sep 10, 2026
@thedavidweng

Copy link
Copy Markdown
Contributor Author

Thanks for the fix!
I don't have a local Windows system to debug this issue, thought this was some kind of build runner issue as it only happened from time to time.

Will merge once the build checks are done.

Yes, it's CI Flask that happens occasionally, it should be more stable now

@thedavidweng
thedavidweng deleted the fix/windows-static-applocal branch September 11, 2026 02:04
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