summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-12-06 20:53:27 +0800
committerGitHub <[email protected]>2021-12-06 20:53:27 +0800
commit1db61fa633f64f3d7465e3d960016934b0fedc80 (patch)
treeed03b3e61ba4c458b11979039afdb01e7f4c3771
parentb48381cda166808c879fabf2a263b66012e7c2aa (diff)
Update config.lua
-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