summaryrefslogtreecommitdiff
path: root/xmake/actions/require
diff options
context:
space:
mode:
authorruki <[email protected]>2018-09-19 23:17:53 +0800
committerruki <[email protected]>2018-09-19 13:47:18 +0800
commit3effabb03faacb09d5b566f8e72a5171bfaaa97e (patch)
tree2170cc518e15d2e0eaec190bb125b6ab2b22d52c /xmake/actions/require
parentdae812d748abf4b10812028acb81d6187fd5e2af (diff)
add search directories for prefix
Diffstat (limited to 'xmake/actions/require')
-rw-r--r--xmake/actions/require/package.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/actions/require/package.lua b/xmake/actions/require/package.lua
index 828241f4d..438f42219 100644
--- a/xmake/actions/require/package.lua
+++ b/xmake/actions/require/package.lua
@@ -423,13 +423,14 @@ function install_packages(requires, opt)
-- load packages
local packages = load_packages(requires, opt)
+ --[[
-- add path environment for fetch binary packages
local pathes = os.getenv("PATH")
for _, package in ipairs(packages) do
if package:kind() == "binary" and package:supported() then
os.addenv("PATH", package:installdir("bin"))
end
- end
+ end]]
-- fetch packages (with system) from local first
if not option.get("force") then
@@ -513,7 +514,7 @@ function install_packages(requires, opt)
end
-- restore path environment
- os.setenv("PATH", pathes)
+-- os.setenv("PATH", pathes)
-- ok
return packages