summaryrefslogtreecommitdiff
path: root/xmake/includes/check_cxxtypes.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/includes/check_cxxtypes.lua')
-rw-r--r--xmake/includes/check_cxxtypes.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/includes/check_cxxtypes.lua b/xmake/includes/check_cxxtypes.lua
index 3a1ab58ef..d833e8439 100644
--- a/xmake/includes/check_cxxtypes.lua
+++ b/xmake/includes/check_cxxtypes.lua
@@ -27,7 +27,7 @@
--
function check_cxxtypes(definition, types, opt)
opt = opt or {}
- local optname = "__" .. (opt.name or definition)
+ local optname = opt.name or ("__" .. definition)
save_scope()
option(optname)
set_showmenu(false)
@@ -64,7 +64,7 @@ end
--
function configvar_check_cxxtypes(definition, types, opt)
opt = opt or {}
- local optname = "__" .. (opt.name or definition)
+ local optname = opt.name or ("__" .. definition)
local defname, defval = table.unpack(definition:split('='))
save_scope()
option(optname)