diff options
| author | ruki <[email protected]> | 2019-04-17 23:44:32 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-04-17 16:27:15 +0800 |
| commit | 0d6c065b3b20d98ae8a986a179f792923be3dbc3 (patch) | |
| tree | 5c889568c7073fbdb471a36069f59f68926db9eb | |
| parent | cc4e057ed427d3cbcfcf4030b63b0f46e443c256 (diff) | |
fix check option
| -rw-r--r-- | xmake/core/project/option.lua | 4 |
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 |
