From 0ee348d0cf7c3aa72c56ad50e5627b4fc96bc64d Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 18 Oct 2023 00:50:56 +0800 Subject: bind qt bin path #4297 --- xmake/rules/qt/install/windows.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- cgit v1.3.1