···11224 # This returns the minimum suported version for the platform. The
11225 # assumption is that or any later version is good.
11226 choose = platform:
11227- /**/ if platform.isDarwin then "7"
11228- else if platform.isFreeBSD then "7"
11229- else if platform.isAndroid then "12"
11230- else if platform.isLinux then "7"
11231- else if platform.isWasm then "8"
11232- else "latest";
11233 # We take the "max of the mins". Why? Since those are lower bounds of the
11234 # supported version set, this is like intersecting those sets and then
11235 # taking the min bound of that.
11236- minSupported = lib.max (choose stdenv.hostPlatform) (choose stdenv.targetPlatform);
011237 in pkgs.${"llvmPackages_${minSupported}"};
1123811239 llvmPackages_5 = recurseIntoAttrs (callPackage ../development/compilers/llvm/5 {
···11224 # This returns the minimum suported version for the platform. The
11225 # assumption is that or any later version is good.
11226 choose = platform:
11227+ /**/ if platform.isDarwin then 7
11228+ else if platform.isFreeBSD then 7
11229+ else if platform.isAndroid then 12
11230+ else if platform.isLinux then 7
11231+ else if platform.isWasm then 8
11232+ else 11; # latest
11233 # We take the "max of the mins". Why? Since those are lower bounds of the
11234 # supported version set, this is like intersecting those sets and then
11235 # taking the min bound of that.
11236+ minSupported = toString (lib.trivial.max (choose stdenv.hostPlatform) (choose
11237+ stdenv.targetPlatform));
11238 in pkgs.${"llvmPackages_${minSupported}"};
1123911240 llvmPackages_5 = recurseIntoAttrs (callPackage ../development/compilers/llvm/5 {