diff options
Diffstat (limited to 'xmake/modules/lib')
| -rw-r--r-- | xmake/modules/lib/detect/check_cxsnippets.lua | 6 |
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 |
