···3838 # Darwin uses `llvm-strip`, which results in link errors when using `-x` to strip the asm library
3939 # and linking it with cctools ld64.
4040 postPatch = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) ''
4141- substituteInPlace build.rs --replace 'cmd.arg("-x")' 'cmd.arg("-S")'
4141+ substituteInPlace build.rs --replace-fail '.arg("-x")' '.arg("-S")'
4242 '';
43434444 checkType = "debug";