diff options
| author | ruki <[email protected]> | 2018-09-19 23:17:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-09-19 13:47:18 +0800 |
| commit | 3effabb03faacb09d5b566f8e72a5171bfaaa97e (patch) | |
| tree | 2170cc518e15d2e0eaec190bb125b6ab2b22d52c /xmake/actions | |
| parent | dae812d748abf4b10812028acb81d6187fd5e2af (diff) | |
add search directories for prefix
Diffstat (limited to 'xmake/actions')
| -rw-r--r-- | xmake/actions/require/package.lua | 5 |
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 |
