diff options
| author | ruki <[email protected]> | 2024-03-26 23:33:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-03-26 23:33:53 +0800 |
| commit | f17d01706c2b9b5db840ebaa4e9c8abf4e748064 (patch) | |
| tree | 196e3751f607343463edcbaaecf1dcd9bb863ce7 /xmake/core/package/package.lua | |
| parent | f1769ddf69ff053809b37b103a91a37231369994 (diff) | |
improve envs
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index c3cba4407..4fbfa635a 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -985,23 +985,6 @@ function _instance:_rawenvs() envs.PATH = {"bin"} end - -- add compiler runtime library directory to $PATH - -- @see https://github.com/xmake-io/xmake-repo/pull/3606 - if is_host("windows") and self:is_plat("windows", "mingw") then -- bin/*.dll for windows - local toolchains = self:toolchains() - if not toolchains then - local platform_inst = platform.load(self:plat(), self:arch()) - toolchains = platform_inst:toolchains() - for _, toolchain_inst in ipairs(toolchains) do - local runenvs = toolchain_inst:runenvs() - if runenvs then - envs.PATH = envs.PATH or {} - table.join2(envs.PATH, runenvs.PATH) - end - end - end - end - -- add LD_LIBRARY_PATH to load *.so directory if os.host() ~= "windows" and self:is_plat(os.host()) and self:is_arch(os.arch()) then envs.LD_LIBRARY_PATH = {"lib"} |
