diff options
| author | ruki <[email protected]> | 2022-10-25 22:33:46 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-10-25 22:33:46 +0800 |
| commit | 0a8adc56903214cb7adaf52427728e44e5ecba14 (patch) | |
| tree | b31e640acd1b51455a1a4e97d3347fa1981725fa | |
| parent | b9f1a582969a8a7e70c4bc5d9d27c37f07a9132c (diff) | |
sort modes
| -rw-r--r-- | xmake/core/project/project.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua index 2d2409d5a..da1966e8c 100644 --- a/xmake/core/project/project.lua +++ b/xmake/core/project/project.lua @@ -1191,7 +1191,7 @@ function project.modes() modes = allowed_modes:to_array() else modes = {} - for _, target in pairs(table.wrap(project.targets())) do + for _, target in table.orderpairs(table.wrap(project.targets())) do for _, rule in ipairs(target:orderules()) do local name = rule:name() if name:startswith("mode.") then |
