summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-10-17 23:24:53 -0500
committerGitHub <[email protected]>2023-10-17 23:24:53 -0500
commit3d3b46495dc9f144586389804761f0ceba0ea265 (patch)
tree5c8fe03bcb97c8e934905ea27e980bac9c513c1d
parentaf589ed7e8bbbabbe1fc33156d1161b319fd85b5 (diff)
parent033b224eeadc306ea5dbf2e815131efc949e4661 (diff)
Merge pull request #4299 from xmake-io/qt
bind qt bin path #4297
-rw-r--r--xmake/rules/qt/install/windows.lua10
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..9877b0aaf 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(envs.PATH, path.splitenv(curpath))
+ end
+ end
local argv = {"--force"}
if option.get("diagnosis") then