diff options
| author | ruki <[email protected]> | 2024-01-20 23:42:09 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-01-25 12:09:58 +0800 |
| commit | eddb673f8fffc281fa9a5c9ef56ef0c00495a627 (patch) | |
| tree | 4751ce05ae47f80af73f8aa713de55fd513c8cbf /xmake/core/platform/platform.lua | |
| parent | c622a4e8a6542cc9234344ab323139f5e8f23612 (diff) | |
limit toolchain runtimes
Diffstat (limited to 'xmake/core/platform/platform.lua')
| -rw-r--r-- | xmake/core/platform/platform.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua index 322e976b8..180e5401e 100644 --- a/xmake/core/platform/platform.lua +++ b/xmake/core/platform/platform.lua @@ -157,8 +157,11 @@ function _instance:runtimes() elseif self:name() == "android" then runtimes = runtimes or config.get("ndk_cxxstl") end - if runtimes then - runtimes = table.unwrap(runtimes:split(",", {plain = true})) + runtimes = runtimes:split(",", {plain = true}) + if #runtimes > 0 then + runtimes = table.unwrap(runtimes) + else + runtimes = nil end runtimes = runtimes or false self:_memcache():set("runtimes", runtimes) |
