Skip to content

fix(cmake): pass the windows manifest script to llvm-rc after -- - #6

Merged
boykopovar merged 1 commit into
boykopovar:mainfrom
AnyDevStudio:fix/windows-manifest-rc-paths
Nov 17, 2026
Merged

boykopovar merged 1 commit into
boykopovar:mainfrom
AnyDevStudio:fix/windows-manifest-rc-paths

Conversation

@utkuhalis

Copy link
Copy Markdown
Contributor

Summary

Building a Windows target on a host whose paths start with / fails at the manifest step:

llvm-rc /FO /Users/me/Game/build/windows/Game-manifest.res /Users/me/Game/build/windows/Game-manifest.rc
Exactly one input file should be provided.

llvm-rc reads the input path /Users/... as one of its / options. adk_windows_runtime_manifest now puts -- before the script, which ends the options. The output after /FO is not affected, because it is that option's value.

Testing

A minimal Ninja project that includes cmake/sdk/DesktopRuntime.cmake and calls adk_windows_runtime_manifest on one target, on macOS arm64 with LLVM 23.1.3:

  • Before: the command above fails with that message.
  • After: it writes the .res, and llvm-readobj --coff-resources shows the MANIFEST resource (type 24, name 1) with the manifest in it.

ctest passed 11/11 with this applied (see the note below about building on macOS).

I did not run a Windows or Linux host. On Windows the paths do not start with /, so the only change there is the extra --, which llvm-rc has accepted since 2019.

Note

On a stock SDK this step is only reached when the Windows startup library is present, which today means a Windows host. I hit it building Windows games from a Mac with the startup library taken from the Windows release, so I cannot claim it affects the supported setups; it only makes the function correct for any host.

Building current main on macOS also needs #include <algorithm> in 3rdparty/opengnm-psbc/src/amd/compiler/aco_util.h (std::move_backward); I added that locally to run the tests. It is not part of this pull request.

@boykopovar
boykopovar merged commit 4c6c5d5 into boykopovar:main Nov 17, 2026
18 checks passed
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