From 5c0654f26211aa9e8a0f6783de3e89c5ca1d2724 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Tue, 3 May 2022 06:16:15 -0400 Subject: [PATCH] cross: Add mingwW64-llvm cross-system. --- lib/systems/examples.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/systems/examples.nix b/lib/systems/examples.nix index 997a7a8c273..19dba63f4f5 100644 --- a/lib/systems/examples.nix +++ b/lib/systems/examples.nix @@ -301,6 +301,15 @@ rec { libc = "msvcrt"; # This distinguishes the mingw (non posix) toolchain }; + # 64 bit mingw-w64 with a llvm-based toolchain targetting ucrt + # + # Inspired by mstorsjo/llvm-mingw + mingwW64-llvm = { + config = "x86_64-w64-mingw32"; + libc = "ucrt"; + useLLVM = true; + }; + # BSDs amd64-netbsd = lib.warn "The amd64-netbsd system example is deprecated. Use x86_64-netbsd instead." x86_64-netbsd;