From 88d5ef3ff738c9574112c0afba1d2f982ceaa461 Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Sun, 13 Aug 2023 14:31:55 +0000 Subject: [PATCH] Correctly set `qt_ver=6' for Qt6 in Linux (#775) This is a follow up to 155ad0e2644a84f3c82f114409ae01569b2602ad. There was a bug that GYP variable `qt_ver=6' can never be set in Linux. With this commit `qt_ver=6' will be correctly set for Qt6. PiperOrigin-RevId: 556545280 --- src/build_mozc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build_mozc.py b/src/build_mozc.py index 785a0bdff..fe74aa73a 100755 --- a/src/build_mozc.py +++ b/src/build_mozc.py @@ -482,7 +482,7 @@ def GypMain(options, unused_args): if target_platform == 'Linux': if PkgExists('Qt6Core', 'Qt6Gui', 'Qt6Widgets'): qt_ver = 6 - if PkgExists('Qt5Core', 'Qt5Gui', 'Qt5Widgets'): + elif PkgExists('Qt5Core', 'Qt5Gui', 'Qt5Widgets'): qt_ver = 5 else: PrintErrorAndExit('Qt is required to build GUI Tool. '