util: avoid calling kcmp on Android

On some combinations of Android version and kernel version, calling kcmp
results in seccomp killing the process.

As there doesn't seem to be a way to query for that in advance, skip
this check altogether on Android.

Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Rob Clark <robclark@freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20180>
This commit is contained in:
Eric Engestrom 2023-02-01 17:58:02 +00:00 committed by Marge Bot
parent 0d6c240fcc
commit a72035f9c5
3 changed files with 16 additions and 1 deletions

View file

@ -427,6 +427,11 @@ option(
value : 25,
description : 'Android Platform SDK version. Default: Nougat version.'
)
option(
'allow-kcmp',
type : 'feature',
description : 'Allow using KCMP_FILE to compare file descriptions. auto = allowed everywhere except on Android'
)
option(
'zstd',
type : 'feature',