mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-24 01:21:11 +00:00
boost: suppress GCC warnings on older versions
(cherry picked from commit c742a5c537)
This commit is contained in:
committed by
github-actions[bot]
parent
d2caa93775
commit
cbfe2fc89b
@@ -126,6 +126,13 @@ stdenv.mkDerivation {
|
||||
stripLen = 1;
|
||||
extraPrefix = "libs/context/";
|
||||
})
|
||||
# Fix compiler warning with GCC >= 8; TODO: patch may apply to older versions
|
||||
++ optional (versionAtLeast version "1.65" &&
|
||||
versionOlder version "1.67") (fetchpatch {
|
||||
url = "https://github.com/boostorg/mpl/commit/f48fd09d021db9a28bd7b8452c175897e1af4485.patch";
|
||||
sha256 = "15d2a636hhsb1xdyp44x25dyqfcaws997vnp9kl1mhzvxjzz7hb0";
|
||||
stripLen = 1;
|
||||
})
|
||||
++ optional (and (versionAtLeast version "1.70") (!versionAtLeast version "1.73")) ./cmake-paths.patch
|
||||
++ optional (versionAtLeast version "1.73") ./cmake-paths-173.patch;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user