summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/project/option.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/core/project/option.lua b/xmake/core/project/option.lua
index 71caeba63..357cb5380 100644
--- a/xmake/core/project/option.lua
+++ b/xmake/core/project/option.lua
@@ -73,7 +73,7 @@ function _instance:_do_check()
self._check_cxsnippets = self._check_cxsnippets or sandbox_module.import("lib.detect.check_cxsnippets", {anonymous = true})
-- check for c and c++
- local passed = false
+ local passed = nil
for _, kind in ipairs({"c", "cxx"}) do
-- get conditions
@@ -107,6 +107,8 @@ function _instance:_do_check()
-- passed?
if results_or_errors then
passed = true
+ else
+ passed = false
break
end
end