From 319e3efdbdd42ca2283e8d09a169fe9f8a8fd7c2 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 26 Feb 2023 23:05:09 +0800 Subject: improve includes --- xmake/includes/check_features.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/includes/check_features.lua') diff --git a/xmake/includes/check_features.lua b/xmake/includes/check_features.lua index fa7a89a73..c5e86721f 100644 --- a/xmake/includes/check_features.lua +++ b/xmake/includes/check_features.lua @@ -27,7 +27,7 @@ -- function check_features(definition, features, opt) opt = opt or {} - local optname = "__" .. (opt.name or definition) + local optname = opt.name or ("__" .. definition) save_scope() option(optname) set_showmenu(false) @@ -60,7 +60,7 @@ end -- function configvar_check_features(definition, features, 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) -- cgit v1.3.1