Skip to content

Commit

Permalink
chez: pin to clang-17 on x64 darwin
Browse files Browse the repository at this point in the history
`https://github.com/cisco/ChezScheme/issues/896`

build fails with an invalid memory reference on clang 18 & 19
  • Loading branch information
paparodeo committed Dec 22, 2024
1 parent 2ab355a commit bb0565f
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 bb0565f

Please sign in to comment.