From b57c78d02648f82bb3ff3ba69ae277a9c4ab5036 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 16 Aug 2024 04:47:26 -0400 Subject: [PATCH] windows.mingw_w64: fix building on arm --- pkgs/os-specific/windows/mingw-w64/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/os-specific/windows/mingw-w64/default.nix b/pkgs/os-specific/windows/mingw-w64/default.nix index 2d335af051cf..d8103d7b8d37 100644 --- a/pkgs/os-specific/windows/mingw-w64/default.nix +++ b/pkgs/os-specific/windows/mingw-w64/default.nix @@ -25,6 +25,11 @@ stdenv.mkDerivation { (lib.enableFeature true "idl") (lib.enableFeature true "secure-api") (lib.withFeatureAs true "default-msvcrt" crt) + + # Including other architectures causes errors with invalid asm + (lib.enableFeature stdenv.hostPlatform.isi686 "lib32") + (lib.enableFeature stdenv.hostPlatform.isx86_64 "lib64") + (lib.enableFeature stdenv.hostPlatform.isAarch64 "libarm64") ]; enableParallelBuilding = true;