summaryrefslogtreecommitdiff
path: root/xmake/includes/check_cflags.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-06-03 00:55:31 +0800
committerruki <[email protected]>2022-06-03 00:55:31 +0800
commit8e5e0c6038239eae863341bcf060f6d0ae4e7348 (patch)
treef98fdd93bd8d8d4338f38becaa55006e7b127ba5 /xmake/includes/check_cflags.lua
parent73eab3a212c5db9ca2f739ba4b4a3ab80e662072 (diff)
improve option/showmenu
Diffstat (limited to 'xmake/includes/check_cflags.lua')
-rw-r--r--xmake/includes/check_cflags.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/includes/check_cflags.lua b/xmake/includes/check_cflags.lua
index 63354dfac..773992a1e 100644
--- a/xmake/includes/check_cflags.lua
+++ b/xmake/includes/check_cflags.lua
@@ -30,6 +30,7 @@ function check_cflags(definition, flags, opt)
local optname = "__" .. (opt.name or definition)
save_scope()
option(optname)
+ set_showmenu(false)
add_defines(definition)
on_check(function (option)
import("core.tool.compiler")
@@ -58,6 +59,7 @@ function configvar_check_cflags(definition, flags, opt)
local defname, defval = table.unpack(definition:split('='))
save_scope()
option(optname)
+ set_showmenu(false)
if opt.default == nil then
set_configvar(defname, defval or 1, {quote = opt.quote})
end