summaryrefslogtreecommitdiff
path: root/xmake/modules/lib/detect/has_flags.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-06-23 21:09:13 +0800
committerruki <[email protected]>2017-06-23 21:09:13 +0800
commitb359250e9cdec42b2503ee3f148c52d0e35a32b4 (patch)
treea13f589d87a7746ac95d9de802478540b6c3db38 /xmake/modules/lib/detect/has_flags.lua
parent0e728f8f990f61d2f31f53f346a64b9b2edd70e1 (diff)
add has_snippets
Diffstat (limited to 'xmake/modules/lib/detect/has_flags.lua')
-rw-r--r--xmake/modules/lib/detect/has_flags.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/lib/detect/has_flags.lua b/xmake/modules/lib/detect/has_flags.lua
index 7da2d98d8..f159e3103 100644
--- a/xmake/modules/lib/detect/has_flags.lua
+++ b/xmake/modules/lib/detect/has_flags.lua
@@ -62,7 +62,7 @@ function _has_flag(name, flag, opt)
end
-- trace
- if option.get("verbose") then
+ if option.get("verbose") or opt.verbose then
cprint("checking for the flags %s ... %s", flag, ifelse(result, "${green}ok", "${red}no"))
end
@@ -78,7 +78,7 @@ end
--
-- @param name the tool name
-- @param flags the flags
--- @param opt the argument options, .e.g {program = "", toolkind = "[cc|cxx|ld|ar|sh|gc|rc|dc|mm|mxx]"}
+-- @param opt the argument options, .e.g {verbose = false, program = "", toolkind = "[cc|cxx|ld|ar|sh|gc|rc|dc|mm|mxx]"}
--
-- @return true or false
--