Module: Mesa
Branch: master
Commit: 03bea54e02901f188d03d5432f47fc9c57c4e12e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=03bea54e02901f188d03d5432f47fc9c57c4e12e

Author: Philipp Zabel <[email protected]>
Date:   Tue Aug 18 15:28:41 2020 +0200

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: 138c003d2273 ("meson: deprecated 'true' and 'false' in combo options for 
'enabled' and 'disabled'")
Signed-off-by: Philipp Zabel <[email protected]>
Reviewed-by: Vinson Lee <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6370>

---

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 76f72a9df7c..bd6a1fcd495 100644
--- a/meson.build
+++ b/meson.build
@@ -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

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to