Merge pull request #234868 from reckenrode/rav1e-cctools
rav1e: fix build with updated Darwin stdenv
This commit is contained in:
commit
50512e6054
1 changed files with 6 additions and 0 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue