How to build a sysimage for Windows

I built a system image on Windows 10 using Julia 1.12. But I cannot start Julia with this system image:

C:\Users\ufechner\repos\IM_AWES_bench.jl\bin>julia -J sysimage.dll
ERROR: could not load library "C:\Users\ufechner\repos\IM_AWES_bench.jl\bin\sysimage.dll"
%1 is not a valid Win32 application.
julia> versioninfo()
Julia Version 1.12.6
Commit 15346901f0 (2026-04-09 19:20 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 16 × AMD Ryzen 9 7950X 16-Core Processor
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, znver4)
  GC: Built with stock GC
Threads: 1 default, 1 interactive, 1 GC (on 16 virtual cores)

Any idea?

Works fine on Linux.

And yes, Windows and Julia are both 64 bit. So the error message is a bit confusing.