abbaye-des-morts: fix darwin build
This commit is contained in:
parent
acca62bcd1
commit
67ab5122c1
@ -27,11 +27,15 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
makeFlags = [
|
makeFlags = [
|
||||||
"PREFIX=${placeholder "out"}"
|
"PREFIX=${placeholder "out"}"
|
||||||
"DESTDIR="
|
"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 \
|
substituteInPlace Makefile \
|
||||||
--replace -fpredictive-commoning ""
|
--replace-fail "-funswitch-loops" "" \
|
||||||
|
--replace-fail "-fgcse-after-reload" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user