mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 07:19:50 +00:00
meson: fix power8 option
Do not throw a deprecation warning if the power8 option is set to the
new 'disabled' value. Instead, warn if it is still set to the legacy
value 'false'.
Fixes: 138c003d22
("meson: deprecated 'true' and 'false' in combo options for 'enabled' and 'disabled'")
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6370>
This commit is contained in:
parent
57b4f60add
commit
03bea54e02
@ -765,7 +765,7 @@ _power8 = get_option('power8')
|
||||
if _power8 == 'true'
|
||||
_power8 = 'enabled'
|
||||
warning('power8 option "true" deprecated, please use "enabled" instead.')
|
||||
elif _power8 == 'disabled'
|
||||
elif _power8 == 'false'
|
||||
_power8 = 'disabled'
|
||||
warning('power8 option "false" deprecated, please use "disabled" instead.')
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user