summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)