diff options
| author | ruki <[email protected]> | 2023-11-01 20:06:35 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-01 20:06:35 -0500 |
| commit | ccf9c0fe4326e18cbca7495a6f947578d4e5a3f2 (patch) | |
| tree | 1ea5a4f948a4a8e81c5830efd307d5864fa36f23 | |
| parent | 552f8e7af8846c4aa87040361bf8a1727d8c15d5 (diff) | |
Update check_cxsnippets.lua
| -rw-r--r-- | xmake/modules/lib/detect/check_cxsnippets.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xmake/modules/lib/detect/check_cxsnippets.lua b/xmake/modules/lib/detect/check_cxsnippets.lua index 310c55fa0..912345909 100644 --- a/xmake/modules/lib/detect/check_cxsnippets.lua +++ b/xmake/modules/lib/detect/check_cxsnippets.lua @@ -260,10 +260,9 @@ function main(snippets, opt) if opt.binaryfind then local content = io.readfile(binaryfile, {encoding = "binary"}) local match = content:match(opt.binaryfind) - if match == nil then - return false + if match then + return true, match end - return true, match end return true end, |
