summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/config.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/base/config.lua')
-rw-r--r--xmake/scripts/base/config.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/scripts/base/config.lua b/xmake/scripts/base/config.lua
index d0f58892b..6b2849564 100644
--- a/xmake/scripts/base/config.lua
+++ b/xmake/scripts/base/config.lua
@@ -113,8 +113,8 @@ end
-- get the given configure from the current
function config.get(name)
- -- check
- assert(config._CURRENT)
+ -- the configure has been not loaded
+ if not config._CURRENT then return end
-- the value
local value = config._CURRENT[name]