boost-build: fix darwin build

This commit is contained in:
Stéphan Kochen 2021-05-11 15:21:13 +02:00 committed by Jonathan Ringer
parent cd66ac5fc3
commit 4c201a5e2e
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,12 @@
diff --git a/src/build-system.jam b/src/build-system.jam
index 60425c54..c6842217 100644
--- a/src/build-system.jam
+++ b/src/build-system.jam
@@ -644,7 +644,7 @@ local rule should-clean-project ( project )
}
else if [ os.name ] = MACOSX
{
- default-toolset = darwin ;
+ default-toolset = clang-darwin ;
}
}

View file

@ -15,6 +15,11 @@ stdenv.mkDerivation rec {
sha256 = "1r4rwlq87ydmsdqrik4ly5iai796qalvw7603mridg2nwcbbnf54";
};
patches = [
# Upstream defaults to gcc on darwin, but we use clang.
./darwin-default-toolset.patch
];
nativeBuildInputs = [
bison
];