summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-08-25 23:07:48 +0800
committerruki <[email protected]>2023-08-25 23:07:48 +0800
commite08b6b80682647b0058405bc6a29382bf476e463 (patch)
tree8b1d3ca3e471db64bb71b381872c2f758ba6930a
parente2dc4753dbbb0925ae0671ebeb56791f540cc5ba (diff)
fix xrepo env
-rw-r--r--xmake/modules/private/xrepo/action/env.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/xrepo/action/env.lua b/xmake/modules/private/xrepo/action/env.lua
index fb4c0ea68..5a9347922 100644
--- a/xmake/modules/private/xrepo/action/env.lua
+++ b/xmake/modules/private/xrepo/action/env.lua
@@ -253,7 +253,7 @@ function _package_getenvs(opt)
packages = boundenv or option.get("program")
end
local oldir = os.curdir()
- if os.isfile(os.projectfile()) or has_envfile then
+ if (os.isfile(os.projectfile()) and not boundenv) or has_envfile then
if has_envfile then
_enter_project()
table.insert(project.rcfiles(), boundenv)