boost: check clang version

boost <1.69 can't be compiled with clang >=8. This commit adds an assert
to catch the error early on.
wip/yesman
Holger Wünsche 4 years ago
parent ee90904d5e
commit 556b0e89ca
No known key found for this signature in database
GPG Key ID: AA534CBC32134FC4
  1. 3
      pkgs/development/libraries/boost/generic.nix

@ -28,6 +28,9 @@ assert enableShared || enableStatic;
assert enablePython -> stdenv.hostPlatform == stdenv.buildPlatform;
assert enableNumpy -> enablePython;
# Boost <1.69 can't be build with clang >8, because pth was removed
assert with stdenv.lib; ((toolset == "clang" && !(versionOlder stdenv.cc.version "8.0.0")) -> !(versionOlder version "1.69"));
with stdenv.lib;
let

Loading…
Cancel
Save