Skip to content

Commit

Permalink
chez: pin to clang-17 on x64 darwin (#367294)
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Dec 23, 2024
2 parents de59a61 + bb0565f commit e98cbf4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pkgs/by-name/ch/chez/package.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
lib,
stdenv,
llvmPackages_17,
fetchurl,
coreutils,
cctools,
Expand All @@ -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";
Expand Down

0 comments on commit e98cbf4

Please sign in to comment.