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;