diff options
| author | ruki <[email protected]> | 2021-02-10 23:31:34 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-02-10 23:31:34 +0800 |
| commit | d2e70dd2430454e9fcacc8a543d7710737e32ca1 (patch) | |
| tree | c242085385149c497ae48a57c136559dcca63cd0 /xmake/actions/require/impl/package.lua | |
| parent | 0264096936203a11e4ea1d91b06f7c4fbb2a52d6 (diff) | |
move toolchain package to beginning
Diffstat (limited to 'xmake/actions/require/impl/package.lua')
| -rw-r--r-- | xmake/actions/require/impl/package.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/actions/require/impl/package.lua b/xmake/actions/require/impl/package.lua index 6a9ccfcce..c23a5efa8 100644 --- a/xmake/actions/require/impl/package.lua +++ b/xmake/actions/require/impl/package.lua @@ -634,7 +634,12 @@ function _load_packages(requires, opt) end -- save this package - table.insert(packages, package) + -- @note if this root package is toolchain, we need to move it to the beginning in order to install first + if not opt.parentinfo and package:is_toolchain() then + table.insert(packages, 1, package) + else + table.insert(packages, package) + end end end return packages |
