summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2020-06-30 12:15:33 +0800
committerOpportunity <[email protected]>2020-06-30 12:15:33 +0800
commit4c54385b422e3c191b3a2a13d849774132a601a8 (patch)
tree5037aea812f5fab79a8c2d6c11e351db5ba66143
parent6dd3577da0219a388ea2b3331cb9956c1e915dcd (diff)
load config b4 complete
-rw-r--r--xmake/modules/private/utils/complete_helper.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/xmake/modules/private/utils/complete_helper.lua b/xmake/modules/private/utils/complete_helper.lua
index a8a547dd7..4e8c38e8f 100644
--- a/xmake/modules/private/utils/complete_helper.lua
+++ b/xmake/modules/private/utils/complete_helper.lua
@@ -23,6 +23,11 @@ function targets()
{
function ()
import("core.project.project")
+ import("core.project.config")
+
+ -- load config
+ config.load()
+
return table.keys(project.targets())
end
}
@@ -33,6 +38,11 @@ function runable_targets()
{
function ()
import("core.project.project")
+ import("core.project.config")
+
+ -- load config
+ config.load()
+
local targets = project.targets()
local runable = {}
for k, v in pairs(targets) do