abbaye-des-morts: fix darwin build
This commit is contained in:
parent
acca62bcd1
commit
67ab5122c1
@ -27,11 +27,15 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
makeFlags = [
|
||||
"PREFIX=${placeholder "out"}"
|
||||
"DESTDIR="
|
||||
];
|
||||
]
|
||||
++ lib.optional stdenv.isDarwin "PLATFORM=mac";
|
||||
|
||||
preBuild = lib.optionalString stdenv.cc.isClang ''
|
||||
# Even with PLATFORM=mac, the Makefile specifies some GCC-specific CFLAGS that
|
||||
# are not supported by modern Clang on macOS
|
||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace Makefile \
|
||||
--replace -fpredictive-commoning ""
|
||||
--replace-fail "-funswitch-loops" "" \
|
||||
--replace-fail "-fgcse-after-reload" ""
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user