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";
|
sha256 = "02pihqb1lb76a0xbfwjzs1cd6ay3ldfxsm8dvsbl6qs3vkjxax56";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
|
patchPhase = stdenv.lib.optionalString stdenv.cc.isClang ''
|
||||||
substituteInPlace Makefile --replace "-fno-guess-branch-probability" ""
|
substituteInPlace Makefile --replace "-fno-guess-branch-probability" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user