summaryrefslogtreecommitdiff
path: root/xmake/scripts/action
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/action')
-rw-r--r--xmake/scripts/action/_global.lua4
-rw-r--r--xmake/scripts/action/action.lua4
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