summaryrefslogtreecommitdiff
path: root/xmake/modules/private/action/require/impl/actions/install.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-08-18 22:54:18 +0800
committerruki <[email protected]>2024-08-23 08:14:32 +0800
commit3000c00cfabfed31edd9e9a67d64045f5de7e589 (patch)
tree9b63dde886a3abb8ff3ba36c3c1caee1be3e9e07 /xmake/modules/private/action/require/impl/actions/install.lua
parent9b81b86e21ce132cc3a4d03b1868c2a7748c8345 (diff)
install toolchain packages first
Diffstat (limited to 'xmake/modules/private/action/require/impl/actions/install.lua')
-rw-r--r--xmake/modules/private/action/require/impl/actions/install.lua20
1 files changed, 0 insertions, 20 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/install.lua b/xmake/modules/private/action/require/impl/actions/install.lua
index e3e81aa22..04ecd0036 100644
--- a/xmake/modules/private/action/require/impl/actions/install.lua
+++ b/xmake/modules/private/action/require/impl/actions/install.lua
@@ -223,23 +223,6 @@ function _fix_paths_for_precompiled_package(package)
end
end
--- check package toolchains
-function _check_package_toolchains(package)
- if package:toolchains() then
- for _, toolchain_inst in pairs(package:toolchains()) do
- if not toolchain_inst:check() then
- raise("toolchain(\"%s\"): not found!", toolchain_inst:name())
- end
- end
- else
- -- maybe this package is host package, it's platform and toolchain has been not checked yet.
- local platform_inst = platform.load(package:plat(), package:arch())
- if not platform_inst:check() then
- raise("no any matched platform for this package(%s)!", package:name())
- end
- end
-end
-
-- get failed install directory
function _get_installdir_failed(package)
return path.join(package:cachedir(), "installdir.failed")
@@ -404,9 +387,6 @@ function main(package)
-- enter the environments of all package dependencies
_enter_package_installenvs(package)
- -- check package toolchains
- _check_package_toolchains(package)
-
-- do install
if script ~= nil then
filter.call(script, package, {oldenvs = oldenvs})