tests.cc-wrapper: filter out *MultiStdenv when not on and not building for linux and x86_64
they're only supported on x86_64-linux
This commit is contained in:
parent
535447e289
commit
686516e0bc
@ -19,11 +19,16 @@ with pkgs;
|
||||
in
|
||||
recurseIntoAttrs tests;
|
||||
gccTests = let
|
||||
pkgSets = lib.pipe (attrNames pkgs) [
|
||||
pkgSets = lib.pipe (attrNames pkgs) ([
|
||||
(filter (lib.hasPrefix "gcc"))
|
||||
(filter (lib.hasSuffix "Stdenv"))
|
||||
(filter (n: n != "gccCrossLibcStdenv"))
|
||||
];
|
||||
] ++ lib.optionals (!(
|
||||
(stdenv.buildPlatform.isLinux && stdenv.buildPlatform.isx86_64) &&
|
||||
(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64)
|
||||
)) [
|
||||
(filter (n: !lib.hasSuffix "MultiStdenv" n))
|
||||
]);
|
||||
in lib.genAttrs pkgSets (name: callPackage ./cc-wrapper { stdenv = pkgs.${name}; });
|
||||
in recurseIntoAttrs {
|
||||
default = callPackage ./cc-wrapper { };
|
||||
|
Loading…
Reference in New Issue
Block a user