Merge pull request #93351 from alyssais/gfan

gfan: fix clang build on non-Darwin
This commit is contained in:
Daniël de Kok 2020-07-19 10:23:13 +02:00 committed by GitHub
commit 5bb161af08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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