From 1db61fa633f64f3d7465e3d960016934b0fedc80 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 6 Dec 2021 20:53:27 +0800 Subject: Update config.lua --- xmake/core/project/config.lua | 4 ++-- 1 file 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 -- cgit v1.3.1