From 0d6c065b3b20d98ae8a986a179f792923be3dbc3 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 17 Apr 2019 23:44:32 +0800 Subject: fix check option --- xmake/core/project/option.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.3.1