diff options
| author | ruki <[email protected]> | 2024-01-20 23:49:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-01-25 12:09:58 +0800 |
| commit | ecaa9738b2f784f69009ca7902855f3528c08af9 (patch) | |
| tree | 97dbe4d4be7905dfda6290c1595c385b3c684c72 | |
| parent | c5f7e1ffa4aefdccd4007cc3d291de6fc9413f38 (diff) | |
fix platform error
| -rw-r--r-- | xmake/core/platform/platform.lua | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/xmake/core/platform/platform.lua b/xmake/core/platform/platform.lua index 180e5401e..4a4b4bf96 100644 --- a/xmake/core/platform/platform.lua +++ b/xmake/core/platform/platform.lua @@ -157,11 +157,13 @@ function _instance:runtimes() elseif self:name() == "android" then runtimes = runtimes or config.get("ndk_cxxstl") end - runtimes = runtimes:split(",", {plain = true}) - if #runtimes > 0 then - runtimes = table.unwrap(runtimes) - else - runtimes = nil + if runtimes then + runtimes = runtimes:split(",", {plain = true}) + if #runtimes > 0 then + runtimes = table.unwrap(runtimes) + else + runtimes = nil + end end runtimes = runtimes or false self:_memcache():set("runtimes", runtimes) |
