From 556b0e89ca6e7732219d63a8d2c6a9bba39ebeef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20W=C3=BCnsche?= Date: Mon, 13 Apr 2020 13:17:53 +0200 Subject: [PATCH] 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. --- pkgs/development/libraries/boost/generic.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/boost/generic.nix b/pkgs/development/libraries/boost/generic.nix index 828635e10c63..7fe3c185c04a 100644 --- a/pkgs/development/libraries/boost/generic.nix +++ b/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