diff options
| author | ruki <[email protected]> | 2019-03-15 22:42:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-03-15 10:16:08 +0800 |
| commit | cc02a8d5a54dd46a63f0da144cfb35b12dcf3263 (patch) | |
| tree | 826251e1187012ba02d8506771f138711d716088 /xmake/modules/lib/detect/has_cfuncs.lua | |
| parent | 9036abe2d5d282bd19c9f6bdd2acee9ac03051fc (diff) | |
add opt.name for has_xxx
Diffstat (limited to 'xmake/modules/lib/detect/has_cfuncs.lua')
| -rw-r--r-- | xmake/modules/lib/detect/has_cfuncs.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/modules/lib/detect/has_cfuncs.lua b/xmake/modules/lib/detect/has_cfuncs.lua index 6cf8f4cd3..73ab54eca 100644 --- a/xmake/modules/lib/detect/has_cfuncs.lua +++ b/xmake/modules/lib/detect/has_cfuncs.lua @@ -30,7 +30,7 @@ import("lib.detect.check_cxsnippets") -- @param funcs the funcs -- @param opt the argument options -- .e.g --- { verbose = false, target = [target|option], includes = "", config = {linkdirs = .., links = .., defines = .., ..}} +-- { verbose = false, target = [target|option], includes = "", configs = {linkdirs = .., links = .., defines = .., ..}} -- -- funcs: -- sigsetjmp @@ -55,5 +55,6 @@ function main(funcs, opt) opt.funcs = funcs -- has funcs? - return check_cxsnippets("", opt) + local name = opt.name or "has_cfuncs" + return check_cxsnippets({[name] = ""}, opt) end |
