diff options
| author | ruki <[email protected]> | 2015-06-04 16:36:10 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-04 16:36:10 +0800 |
| commit | c17f9ed42c8529f3ff724e0d0614b99eac6374c0 (patch) | |
| tree | 2e4524e89ec73e492e09e682bf2c3274aee73833 /xmake/scripts/platform/platform.lua | |
| parent | 6c5fbedfe26db54b0bbb95fa9154ed759c7ad98f (diff) | |
fix global prober bug
Diffstat (limited to 'xmake/scripts/platform/platform.lua')
| -rw-r--r-- | xmake/scripts/platform/platform.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/scripts/platform/platform.lua b/xmake/scripts/platform/platform.lua index 3f9d2feec..35ce7f9f1 100644 --- a/xmake/scripts/platform/platform.lua +++ b/xmake/scripts/platform/platform.lua @@ -348,8 +348,8 @@ function platform.probe(configs, is_global) -- probe all platforms with the current host for _, plat in ipairs(plats) do local module = platform._load(plat) - if module and module._PROBER and module._PROBER.done and module._HOST and module._HOST == xmake._HOST then - module._PROBER.done(configs, is_global) + if module and module._PROBER and module._PROBER.global and module._HOST and module._HOST == xmake._HOST then + module._PROBER.global(configs) end end @@ -357,8 +357,8 @@ function platform.probe(configs, is_global) else -- probe it local module = platform.module() - if module and module._PROBER and module._PROBER.done then - module._PROBER.done(configs, is_global) + if module and module._PROBER and module._PROBER.config then + module._PROBER.config(configs) end end end |
