Unverified Commit 98bd3171 authored by Randy Eckenrode's avatar Randy Eckenrode
Browse files

guile_2_2: fix build with clang 16 on x86_64-darwin

Guile 2.2 calls `__sincos`, which should be defined in `math.h`, but the
version of that header in the 10.12 SDK is very old (predating 10.12).
Until there is a version of that header available, use the 11.0 SDK to
build Guile.
parent dba6d77a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -34,9 +34,9 @@ builder rec {
  outputs = [ "out" "dev" "info" ];
  setOutputFlags = false; # $dev gets into the library otherwise

  depsBuildBuild = [
    buildPackages.stdenv.cc
  ]
  depsBuildBuild = if stdenv.buildPlatform.isDarwin
    then [ buildPackages.darwin.apple_sdk_11_0.stdenv.cc ]
    else [ buildPackages.stdenv.cc ]
  ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
    pkgsBuildBuild.guile_2_2;
  nativeBuildInputs = [
+1 −1
Original line number Diff line number Diff line
@@ -18297,7 +18297,7 @@ with pkgs;
  # Needed for autogen
  guile_2_0 = callPackage ../development/interpreters/guile/2.0.nix { };
  guile_2_2 = callPackage ../development/interpreters/guile/2.2.nix { };
  guile_2_2 = darwin.apple_sdk_11_0.callPackage ../development/interpreters/guile/2.2.nix { };
  guile_3_0 = callPackage ../development/interpreters/guile/3.0.nix { };