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:
parent
ee90904d5e
commit
556b0e89ca
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue