summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-01 20:06:35 -0500
committerGitHub <[email protected]>2023-11-01 20:06:35 -0500
commitccf9c0fe4326e18cbca7495a6f947578d4e5a3f2 (patch)
tree1ea5a4f948a4a8e81c5830efd307d5864fa36f23
parent552f8e7af8846c4aa87040361bf8a1727d8c15d5 (diff)
Update check_cxsnippets.lua
-rw-r--r--xmake/modules/lib/detect/check_cxsnippets.lua5
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,