Merge pull request #234868 from reckenrode/rav1e-cctools

rav1e: fix build with updated Darwin stdenv
This commit is contained in:
toonn 2023-06-14 22:36:27 +02:00 committed by GitHub
commit 50512e6054
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,6 +55,12 @@ in rustPlatform.buildRustPackage rec {
Security
];
# Darwin uses `llvm-strip`, which results in link errors when using `-x` to strip the asm library
# and linking it with cctools ld64.
postPatch = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) ''
substituteInPlace build.rs --replace 'cmd.arg("-x")' 'cmd.arg("-S")'
'';
checkType = "debug";
postBuild = ''