chez: pin to clang-17 on x64 darwin

`https://github.com/cisco/ChezScheme/issues/896`

build fails with an invalid memory reference on clang 18 & 19
This commit is contained in:
Reno Dakota 2024-12-21 21:32:00 -08:00
parent 2ab355a7e4
commit bb0565f350
No known key found for this signature in database

View File

@ -1,6 +1,7 @@
{
lib,
stdenv,
llvmPackages_17,
fetchurl,
coreutils,
cctools,
@ -10,8 +11,17 @@
libX11,
libuuid,
testers,
}:
}@args:
let
# x64 darwin fails with invalid memory reference with clang-18 & 19.
# https://github.com/cisco/ChezScheme/issues/896
stdenv =
if args.stdenv.hostPlatform.isDarwin && args.stdenv.hostPlatform.isx86_64 then
llvmPackages_17.stdenv
else
args.stdenv;
in
stdenv.mkDerivation (finalAttrs: {
pname = "chez-scheme";
version = "10.1.0";