diff options
| author | ruki <[email protected]> | 2023-10-18 00:50:56 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-10-18 00:50:56 +0800 |
| commit | 0ee348d0cf7c3aa72c56ad50e5627b4fc96bc64d (patch) | |
| tree | 87d1d0d4fca64b5c919bc909194dd965b1833b1c | |
| parent | af589ed7e8bbbabbe1fc33156d1161b319fd85b5 (diff) | |
bind qt bin path #4297
| -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 |
