mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
gfan: fix clang build on non-Darwin
-fno-guess-branch-probability isn't a Darwin-specific thing, it's a clang-specific thing.
This commit is contained in:
parent
951e2175c3
commit
8f5eaa6deb
|
@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "02pihqb1lb76a0xbfwjzs1cd6ay3ldfxsm8dvsbl6qs3vkjxax56";
|
||||
};
|
||||
|
||||
patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
patchPhase = stdenv.lib.optionalString stdenv.cc.isClang ''
|
||||
substituteInPlace Makefile --replace "-fno-guess-branch-probability" ""
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue