From 60b7c3a0f49241f95e5b6f8da5d60eaa7bbeaabb Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sat, 20 Feb 2021 12:30:56 +0000 Subject: [PATCH] meson: disable -Werror=thread-safety on FreeBSD Annotated exposes too many errors in Mesa that are non-trivial to fix and keep working without FreeBSD CI. Fixes: 0d5fe24c9b7d ("macros: Add thread-safety annotation macros") Reviewed-by: Eric Engestrom Cc: mesa-stable Part-of: --- meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index cd58317494e..2947a033995 100644 --- a/meson.build +++ b/meson.build @@ -1131,7 +1131,6 @@ else '-Werror=incompatible-pointer-types', '-Werror=int-conversion', '-Wimplicit-fallthrough', - '-Werror=thread-safety', '-Wno-missing-field-initializers', '-Wno-format-truncation', '-fno-math-errno', @@ -1143,6 +1142,10 @@ else if not (cc.get_id() == 'gcc' and host_machine.system() == 'windows') _trial += ['-Werror=format', '-Wformat-security'] endif + # FreeBSD annotated but Mesa isn't ready + if not (cc.get_id() == 'clang' and host_machine.system() == 'freebsd') + _trial += ['-Werror=thread-safety'] + endif foreach a : _trial if cc.has_argument(a) c_args += a