Skip to content

Commit

Permalink
Merge pull request #234868 from reckenrode/rav1e-cctools
Browse files Browse the repository at this point in the history
rav1e: fix build with updated Darwin stdenv
  • Loading branch information
toonn authored Jun 14, 2023
2 parents d206bcd + 9893913 commit 50512e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/tools/video/rav1e/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down

0 comments on commit 50512e6

Please sign in to comment.