summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform/platform.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-12-01 23:59:53 +0800
committerruki <[email protected]>2015-12-01 23:59:53 +0800
commite56812a09d3677957c41bccc8988599208e3b49a (patch)
tree5e208f2707be9348b7b215706c3fa6cf64aa2134 /xmake/scripts/platform/platform.lua
parente88ecbfd2dcdf19908df50abf86fd29032e2d359 (diff)
improve proberv1.0.3
Diffstat (limited to 'xmake/scripts/platform/platform.lua')
-rw-r--r--xmake/scripts/platform/platform.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/scripts/platform/platform.lua b/xmake/scripts/platform/platform.lua
index c2057e246..38d482f44 100644
--- a/xmake/scripts/platform/platform.lua
+++ b/xmake/scripts/platform/platform.lua
@@ -364,7 +364,7 @@ function platform.probe(is_global)
for _, plat in ipairs(plats) do
local module = platform._load(plat)
if module and module._PROBER and module._PROBER.global and module._HOST and module._HOST == xmake._HOST then
- module._PROBER.global()
+ if not module._PROBER.global() then return false end
end
end
@@ -373,9 +373,12 @@ function platform.probe(is_global)
-- probe it
local module = platform.module()
if module and module._PROBER and module._PROBER.config then
- module._PROBER.config()
+ if not module._PROBER.config() then return false end
end
end
+
+ -- ok
+ return true
end
-- return module: platform