summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/global.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-03 09:29:35 +0800
committerruki <[email protected]>2015-06-03 09:29:35 +0800
commit08bba742c061c93f28c14499fa17af2f1edc2df8 (patch)
tree769eb97f37ada860b6e4c29f6ca247ccf70cbdbc /xmake/scripts/base/global.lua
parent03f445c175b2f8e4768bbff28065f935b9fe3201 (diff)
add private configure for preprocessor
Diffstat (limited to 'xmake/scripts/base/global.lua')
-rw-r--r--xmake/scripts/base/global.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/scripts/base/global.lua b/xmake/scripts/base/global.lua
index 095d49adb..64836bd2c 100644
--- a/xmake/scripts/base/global.lua
+++ b/xmake/scripts/base/global.lua
@@ -120,7 +120,7 @@ function global._make()
-- make current global configure
for k, v in pairs(configs) do
- if type(k) == "string" and not k:startswith("_") then
+ if type(k) == "string" and not k:find("_%u+") then
current[k] = v
end
end
@@ -269,7 +269,7 @@ function global.dump()
assert(global._CURRENT)
-- dump
- utils.dump(global._CURRENT)
+ utils.dump(global._CURRENT, "__%w*")
end