]> git.proxmox.com Git - cargo.git/commitdiff
Auto merge of #10975 - theCapypara:flock-enosys-android, r=weihanglo
authorbors <bors@rust-lang.org>
Tue, 16 Aug 2022 12:29:32 +0000 (12:29 +0000)
committerbors <bors@rust-lang.org>
Tue, 16 Aug 2022 12:29:32 +0000 (12:29 +0000)
Fix file locking being not supported on Android raising an error

This PR fixes #10972 by not failing Cargo operations when the `target_os` is Android and file locking is being reported as not being implemented by the kernel.

I am sadly unable to actually test this at the moment, since despite my best efforts I am not able to get Cargo actually cross-compiled for Android (aarch64-linux-android).

I however don't see any reason why this wouldn't work. `target_os` is "android" on Android and not "linux".


Trivial merge