mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-23 18:24:13 +08:00
meson: Require meson >= 0.49.1 when using icc or icl
0.49.0 can compile most of mesa with ICC or ICL, but not SWR without
additional workarounds in our meson.build files. Bumping patch version
is easier and shouldn't be a big burden anyway, especially to cover a
niche compiler. The check originally only covered ICC, but now covers
ICL as well.
Fixes: 3740ffb59c
("meson: add switches for SWR with MSVC")
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1937
Acked-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
parent
d33fe2d5eb
commit
a9a9249288
@ -199,12 +199,8 @@ with_gallium_virgl = gallium_drivers.contains('virgl')
|
||||
with_gallium_swr = gallium_drivers.contains('swr')
|
||||
with_gallium_lima = gallium_drivers.contains('lima')
|
||||
|
||||
if cc.get_id() == 'intel'
|
||||
if meson.version().version_compare('< 0.49.0')
|
||||
error('Meson does not have sufficient support of ICC before 0.49.0 to compile mesa')
|
||||
elif with_gallium_swr and meson.version().version_compare('== 0.49.0')
|
||||
warning('Meson as of 0.49.0 is sufficient for compiling mesa with ICC, but there are some caveats with SWR. 0.49.1 should resolve all of these')
|
||||
endif
|
||||
if cc.get_id().startswith('intel') and meson.version().version_compare('< 0.49.1')
|
||||
error('Meson does not have sufficient support of ICC before 0.49.1 to compile mesa')
|
||||
endif
|
||||
|
||||
with_gallium = gallium_drivers.length() != 0 and gallium_drivers != ['']
|
||||
|
Loading…
Reference in New Issue
Block a user