mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 18:24:13 +08:00
meson: OpenMP is supposed to be optional
The code around it checks that it is found, so clearly it was meant to
be optional, not arequired.
Fixes: cd2832ee51
("meson: add an optional OpenMP dependency for AMD tests")
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Tested-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10286>
This commit is contained in:
parent
f5133f6bce
commit
5b9253c287
@ -1872,7 +1872,7 @@ dep_openmp = null_dep
|
||||
|
||||
# Even if we find OpenMP, Gitlab CI fails to link with gcc/i386 and clang/anyarch.
|
||||
if host_machine.cpu_family() == 'x86_64' and cc.get_id() == 'gcc'
|
||||
dep_openmp = dependency('openmp')
|
||||
dep_openmp = dependency('openmp', required : false)
|
||||
if dep_openmp.found()
|
||||
pre_args += ['-DHAVE_OPENMP']
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user