Skip to content

Commit

Permalink
Correctly set `qt_ver=6' for Qt6 in Linux (#775)
Browse files Browse the repository at this point in the history
This is a follow up to 155ad0e.

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
  • Loading branch information
yukawa authored and hiroyuki-komatsu committed Aug 13, 2023
1 parent 9ae6dce commit 88d5ef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build_mozc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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. '
Expand Down

0 comments on commit 88d5ef3

Please sign in to comment.