From bbe814352f826b1b44db2e340ce09fac232f4099 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Fri, 14 Oct 2022 17:10:50 -0700 Subject: [PATCH] boost: disable pch for darwin -> linux cross PCH breaks the build when cross-compiling from darwin to linux. Should fix a good number of our cross-trunk hydra builds. --- pkgs/development/libraries/boost/generic.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/boost/generic.nix b/pkgs/development/libraries/boost/generic.nix index 9c2072179b26..920399ee9d22 100644 --- a/pkgs/development/libraries/boost/generic.nix +++ b/pkgs/development/libraries/boost/generic.nix @@ -101,6 +101,7 @@ let ++ optional (toolset != null) "toolset=${toolset}" ++ optional (!enablePython) "--without-python" ++ optional needUserConfig "--user-config=user-config.jam" + ++ optional (stdenv.buildPlatform.isDarwin && stdenv.hostPlatform.isLinux) "pch=off" ++ optionals (stdenv.hostPlatform.libc == "msvcrt") [ "threadapi=win32" ] ++ extraB2Args