fix: modify for change in meson options (#22678)
This commit is contained in:
parent
1ed7762327
commit
904867703e
@ -123,11 +123,17 @@ def meson_args(self):
|
|||||||
args.append('-Dlibunwind=disabled')
|
args.append('-Dlibunwind=disabled')
|
||||||
|
|
||||||
num_frontends = 0
|
num_frontends = 0
|
||||||
|
|
||||||
|
if spec.satisfies('@:20.3'):
|
||||||
|
osmesa_enable, osmesa_disable = ('gallium', 'none')
|
||||||
|
else:
|
||||||
|
osmesa_enable, osmesa_disable = ('true', 'false')
|
||||||
|
|
||||||
if '+osmesa' in spec:
|
if '+osmesa' in spec:
|
||||||
num_frontends += 1
|
num_frontends += 1
|
||||||
args.append('-Dosmesa=gallium')
|
args.append('-Dosmesa={0}'.format(osmesa_enable))
|
||||||
else:
|
else:
|
||||||
args.append('-Dosmesa=none')
|
args.append('-Dosmesa={0}'.format(osmesa_disable))
|
||||||
|
|
||||||
if '+glx' in spec:
|
if '+glx' in spec:
|
||||||
num_frontends += 1
|
num_frontends += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user