summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/actions/config/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/config/main.lua b/xmake/actions/config/main.lua
index 8fd496e7f..1a04e0942 100644
--- a/xmake/actions/config/main.lua
+++ b/xmake/actions/config/main.lua
@@ -198,7 +198,7 @@ function main()
local options_changed = false
local options_history = {}
if not option.get("clean") then
- options_history = cache.get("options_" .. targetname)
+ options_history = cache.get("options_" .. targetname) or {}
options = options or options_history
end
for name, value in pairs(options) do