diff options
| -rw-r--r-- | xmake/modules/private/xrepo/action/env.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xmake/modules/private/xrepo/action/env.lua b/xmake/modules/private/xrepo/action/env.lua index cedd2e339..d2c04a9fe 100644 --- a/xmake/modules/private/xrepo/action/env.lua +++ b/xmake/modules/private/xrepo/action/env.lua @@ -298,10 +298,8 @@ function _package_getenvs(opt) packages = boundenv or option.get("program") end if os.isfile(os.projectfile()) or has_envfile then - if not os.isfile(os.projectfile()) then - _enter_project({enteronly = true}) - end if has_envfile then + _enter_project({enteronly = true}) table.insert(project.rcfiles(), boundenv) end task.run("config", {target = "all"}, {disable_dump = true}) |
