diff options
| author | ruki <[email protected]> | 2021-03-27 22:48:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-03-27 22:48:17 +0800 |
| commit | 46fca3e93f45430a6dc7cf3fb03e4b5421d9a231 (patch) | |
| tree | 9cfa2ff20aa9db14528da24f938bfa4c4fe9c565 | |
| parent | 1ed1d81721dea8349129c2c713918e86e5464d71 (diff) | |
fix tips
| -rw-r--r-- | xmake/modules/lib/detect/check_cxsnippets.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/xmake/modules/lib/detect/check_cxsnippets.lua b/xmake/modules/lib/detect/check_cxsnippets.lua index ecf33aefc..aa728e27b 100644 --- a/xmake/modules/lib/detect/check_cxsnippets.lua +++ b/xmake/modules/lib/detect/check_cxsnippets.lua @@ -145,16 +145,17 @@ function main(snippets, opt) -- get links local links = {} + local target = opt.target if configs and configs.links then table.join2(links, configs.links) end - if opt.target then - table.join2(links, opt.target:get("links")) + if target and target:type() ~= "package" then + table.join2(links, target:get("links")) end if configs and configs.syslinks then table.join2(links, configs.syslinks) end - if opt.target then + if target and target:type() ~= "package" then table.join2(links, opt.target:get("syslinks")) end @@ -237,8 +238,6 @@ function main(snippets, opt) if errors and option.get("diagnosis") and #tostring(errors) > 0 then cprint("${color.warning}checkinfo:${clear dim} %s", errors) end - - -- ok? return ok end |
