1
0
Fork 1
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:
Alyssa Ross 2020-07-16 21:59:20 +00:00
parent 951e2175c3
commit 8f5eaa6deb
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

View file

@ -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" ""
'';