fix: modify for change in meson options (#22678)

This commit is contained in:
kurtsansom 2021-03-31 12:25:18 -05:00 committed by GitHub
parent 1ed7762327
commit 904867703e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,11 +123,17 @@ def meson_args(self):
args.append('-Dlibunwind=disabled')
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:
num_frontends += 1
args.append('-Dosmesa=gallium')
args.append('-Dosmesa={0}'.format(osmesa_enable))
else:
args.append('-Dosmesa=none')
args.append('-Dosmesa={0}'.format(osmesa_disable))
if '+glx' in spec:
num_frontends += 1