summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/project/config.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/project/config.lua b/xmake/core/project/config.lua
index 16912ab68..00d06e878 100644
--- a/xmake/core/project/config.lua
+++ b/xmake/core/project/config.lua
@@ -175,9 +175,9 @@ function config.save(filepath, opt)
configs[name] = value
end
end
- return io.save(filepath, configs)
+ return io.save(filepath, configs, {orderkeys = true})
else
- return io.save(filepath, config.options())
+ return io.save(filepath, config.options(), {orderkeys = true})
end
end