diff options
| -rw-r--r-- | xmake/rules/qt/install/windows.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xmake/rules/qt/install/windows.lua b/xmake/rules/qt/install/windows.lua index fdd9dd384..6edb236b0 100644 --- a/xmake/rules/qt/install/windows.lua +++ b/xmake/rules/qt/install/windows.lua @@ -71,6 +71,16 @@ function main(target, opt) envs = {VCINSTALLDIR = vcvars.VCInstallDir} end end + -- bind qt bin path + -- https://github.com/xmake-io/xmake/issues/4297 + if qt.bindir then + envs = envs or {} + envs.PATH = {qt.bindir} + local curpath = os.getenv("PATH") + if curpath then + table.join2(env.PATH, path.splitenv(curpath)) + end + end local argv = {"--force"} if option.get("diagnosis") then |
