summaryrefslogtreecommitdiff
path: root/xmake/modules/lib
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-10 22:51:49 +0800
committerruki <[email protected]>2020-04-10 11:10:58 +0800
commit3bd2ebba2b83e23a06a66e298ea6eaeead5a5bc8 (patch)
tree5cb51a4347cf6c117a1a1902aaeacdbd0888bd3e /xmake/modules/lib
parent9336b598043c56e35e109134cab23fdeb52f5f78 (diff)
pass configs to package/xmake
Diffstat (limited to 'xmake/modules/lib')
-rw-r--r--xmake/modules/lib/detect/check_cxsnippets.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/lib/detect/check_cxsnippets.lua b/xmake/modules/lib/detect/check_cxsnippets.lua
index 9c6307f77..4a55ba32a 100644
--- a/xmake/modules/lib/detect/check_cxsnippets.lua
+++ b/xmake/modules/lib/detect/check_cxsnippets.lua
@@ -191,8 +191,14 @@ function main(snippets, opt)
local ok = try
{
function ()
+ if option.get("diagnosis") then
+ cprint("${dim}> %s", compiler.compcmd(sourcefile, objectfile, opt))
+ end
compiler.compile(sourcefile, objectfile, opt)
if #links > 0 then
+ if option.get("diagnosis") then
+ cprint("${dim}> %s", linker.linkcmd("binary", {"cc", "cxx"}, objectfile, binaryfile, opt))
+ end
linker.link("binary", {"cc", "cxx"}, objectfile, binaryfile, opt)
end
return true