Windows x86-64 builds
Since 1.38.0, --target windows-x86_64 cross-compiles console and server programs
into x86-64 Windows COFF objects and PE executables. LLVM emits target code;
MinGW-w64 links the executable and target runtime.
radlang build --target windows-x86_64
# output/release/windows-x86_64/<project.name>.exe
radlang build --target windows-x86_64 --emit-object
# output/release/windows-x86_64/<project.name>.o
radlang export --target windows-x86_64Object-only compilation needs no Windows linker. Full executable linking needs
x86_64-w64-mingw32-gcc on PATH, or an explicit RADLANG_WINDOWS_CC targeting
x86_64-w64-mingw32. When rebuilding the runtime archive,
RADLANG_WINDOWS_AR selects its archiver. RADLANG_WINDOWS_ARCHIVE can select
an existing compatible runtime.a. A source checkout can build the target
archive with tools/release/build-runtime-archive.sh --platform windows-x86_64.
Building compiles namespace libraries for the selected target, and
radlang export --target windows-x86_64 builds them for that target itself, so a
separate target build is not needed first. A prebuilt RLP must
match that target; a host package cannot be silently retargeted. Project
--template selection is independent of the build target.
Platform limits
- Native GUI/webview windows and GPU compute are rejected for this target.
- HTTP servers run in one process; an explicit worker count above one raises
a catchable validation error. Use
project.cores: 1. - The HTTP client loads
libcurl.dllon first use; the target runtime build also needs curl headers. - Process arguments and native-library paths are converted from UTF-8 to UTF-16. Some file APIs still follow the Windows code page; uniform UTF-8 filesystem paths are not claimed.
- File watching uses polling; native Windows directory notifications are not integrated.
COFF generation, PE linking, package export and unsupported-feature diagnostics were checked from macOS. Windows execution remains unvalidated on this host; a successful cross-link does not validate fibers, Winsock or process capture on a Windows machine. A Windows-hosted compiler/installer is separate work.
See Linux cross-compilation for the ELF target and the platform matrix for implementation and validation details.