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
@ -28,6 +28,9 @@ assert enableShared || enableStatic;
|
|||||||
assert enablePython -> stdenv.hostPlatform == stdenv.buildPlatform;
|
assert enablePython -> stdenv.hostPlatform == stdenv.buildPlatform;
|
||||||
assert enableNumpy -> enablePython;
|
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;
|
with stdenv.lib;
|
||||||
let
|
let
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user