mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 13:05:08 +00:00
guile_3_0: fix build with clang 16 on x86_64-darwin
Guile 3.0 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.
This commit is contained in:
parent
98bd3171dc
commit
f8382587d9
@ -35,9 +35,10 @@ builder rec {
|
||||
outputs = [ "out" "dev" "info" ];
|
||||
setOutputFlags = false; # $dev gets into the library otherwise
|
||||
|
||||
depsBuildBuild = [
|
||||
buildPackages.stdenv.cc
|
||||
] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
|
||||
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_3_0;
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
|
@ -18299,7 +18299,7 @@ with pkgs;
|
||||
|
||||
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 { };
|
||||
guile_3_0 = darwin.apple_sdk_11_0.callPackage ../development/interpreters/guile/3.0.nix { };
|
||||
|
||||
guile = guile_3_0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user