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.
This commit is contained in:
Holger Wünsche 2020-04-13 13:17:53 +02:00
parent ee90904d5e
commit 556b0e89ca
No known key found for this signature in database
GPG key ID: AA534CBC32134FC4

View file

@ -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