mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
rav1e: fix strip
option mangling on x86_64-darwin
`rav1e-0.7.1` slightly changes `strip` option construction in
43fb165e5e
Update mangling part to restore stripping.
This commit is contained in:
parent
f363b57fc7
commit
e629f662fb
|
@ -38,7 +38,7 @@ rustPlatform.buildRustPackage rec {
|
|||
# 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")'
|
||||
substituteInPlace build.rs --replace-fail '.arg("-x")' '.arg("-S")'
|
||||
'';
|
||||
|
||||
checkType = "debug";
|
||||
|
|
Loading…
Reference in a new issue