summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/platform/platform.lua12
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)