summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/config.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-17 21:07:11 +0800
committerruki <[email protected]>2015-06-17 21:07:11 +0800
commit178e8a75babbe555cd5a0e21749b454a659c39ea (patch)
tree4a3f8d73c14be55934acad9b5d48557e095e178c /xmake/scripts/base/config.lua
parentb66c637057b49a68394419767157ddf1113ec5c1 (diff)
using relative pathes for xmake.lua
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]