diff options
| author | ruki <[email protected]> | 2015-12-01 23:59:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-12-01 23:59:53 +0800 |
| commit | e56812a09d3677957c41bccc8988599208e3b49a (patch) | |
| tree | 5e208f2707be9348b7b215706c3fa6cf64aa2134 /xmake/scripts/action | |
| parent | e88ecbfd2dcdf19908df50abf86fd29032e2d359 (diff) | |
improve proberv1.0.3
Diffstat (limited to 'xmake/scripts/action')
| -rw-r--r-- | xmake/scripts/action/_global.lua | 4 | ||||
| -rw-r--r-- | xmake/scripts/action/action.lua | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/xmake/scripts/action/_global.lua b/xmake/scripts/action/_global.lua index 53ed35b08..a8fffa0bc 100644 --- a/xmake/scripts/action/_global.lua +++ b/xmake/scripts/action/_global.lua @@ -45,7 +45,9 @@ end function _global.done() -- probe the global platform configure - platform.probe(true) + if not platform.probe(true) then + return false + end -- clear up the global configure global.clearup() diff --git a/xmake/scripts/action/action.lua b/xmake/scripts/action/action.lua index f3f2a1ba8..1174b140a 100644 --- a/xmake/scripts/action/action.lua +++ b/xmake/scripts/action/action.lua @@ -103,7 +103,9 @@ function action.done(name) -- probe the platform if _action.need("platform") and (options._ACTION == "config" or config._RECONFIG) then - platform.probe(false) + if not platform.probe(false) then + return false + end end -- merge the default options |
