git.iko.soy/typeable/nixpkgs
on master help sign in
boost: refine assertion requiring pth support in clang (#159990)

The pth feature was only used by boost's build with clang on linux, and should not prevent building on darwin.

commit8668f940c5fc6163f1381e45765de74578a02453 authorAndrew Childs <lorne@cons.org.nz> dateTue 15 Feb 2022, 12:02 (5 years ago) parent76bbae8
1 file changed+2−2
pkgs/development/libraries/boost/generic.nix+2−2
pkgs/development/libraries/boost/generic.nix+2−2
@@ -31,8 +31,8 @@ assert enableShared || enableStatic;
3131assert enablePython -> stdenv.hostPlatform == stdenv.buildPlatform;
3232assert enableNumpy -> enablePython;
3333
34−# Boost <1.69 can't be build with clang >8, because pth was removed
35−assert with lib; ((toolset == "clang" && !(versionOlder stdenv.cc.version "8.0.0")) -> !(versionOlder version "1.69"));
34+# Boost <1.69 can't be built on linux with clang >8, because pth was removed
35+assert with lib; ((stdenv.isLinux && toolset == "clang" && !(versionOlder stdenv.cc.version "8.0.0")) -> !(versionOlder version "1.69"));
3636
3737with lib;
3838let