From ccf9c0fe4326e18cbca7495a6f947578d4e5a3f2 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 1 Nov 2023 20:06:35 -0500 Subject: Update check_cxsnippets.lua --- xmake/modules/lib/detect/check_cxsnippets.lua | 5 ++--- 1 file 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, -- cgit v1.3.1