diff options
| author | ruki <[email protected]> | 2024-08-18 23:05:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-08-23 08:14:32 +0800 |
| commit | 73365950172878680ae5cb0235effe94eddf1586 (patch) | |
| tree | 910967d8af5f952b72311a173b6a0e880caf79f7 | |
| parent | 3dbf27490cbfda4a18843ffb85b74eb30ed9839c (diff) | |
remove on_load limits
| -rw-r--r-- | xmake/core/package/package.lua | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index d16be3529..c6676327f 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -1263,7 +1263,6 @@ end -- get the program and name of the given tool kind function _instance:tool(toolkind) - self:_check_limits_on_load("tool") if self:toolchains() then local cachekey = "package_" .. tostring(self) return toolchain.tool(self:toolchains(), toolkind, {cachekey = cachekey, plat = self:plat(), arch = self:arch()}) @@ -1274,7 +1273,6 @@ end -- get tool configuration from the toolchains function _instance:toolconfig(name) - self:_check_limits_on_load("toolconfig") if self:toolchains() then local cachekey = "package_" .. tostring(self) return toolchain.toolconfig(self:toolchains(), name, {cachekey = cachekey, plat = self:plat(), arch = self:arch()}) @@ -1308,7 +1306,6 @@ end -- ... -- end function _instance:has_tool(toolkind, ...) - self:_check_limits_on_load("has_tool") local _, toolname = self:tool(toolkind) if toolname then for _, v in ipairs(table.join(...)) do @@ -2439,7 +2436,6 @@ end -- @return true or false, errors -- function _instance:has_cfuncs(funcs, opt) - self:_check_limits_on_load("has_cfuncs") opt = opt or {} opt.target = self opt.configs = self:_generate_build_configs(opt.configs, {sourcekind = "cc"}) @@ -2454,7 +2450,6 @@ end -- @return true or false, errors -- function _instance:has_cxxfuncs(funcs, opt) - self:_check_limits_on_load("has_cxxfuncs") opt = opt or {} opt.target = self opt.configs = self:_generate_build_configs(opt.configs, {sourcekind = "cxx"}) @@ -2469,7 +2464,6 @@ end -- @return true or false, errors -- function _instance:has_ctypes(types, opt) - self:_check_limits_on_load("has_ctypes") opt = opt or {} opt.target = self opt.configs = self:_generate_build_configs(opt.configs, {sourcekind = "cc"}) @@ -2484,7 +2478,6 @@ end -- @return true or false, errors -- function _instance:has_cxxtypes(types, opt) - self:_check_limits_on_load("has_cxxtypes") opt = opt or {} opt.target = self opt.configs = self:_generate_build_configs(opt.configs, {sourcekind = "cxx"}) @@ -2499,7 +2492,6 @@ end -- @return true or false, errors -- function _instance:has_cincludes(includes, opt) - self:_check_limits_on_load("has_cincludes") opt = opt or {} opt.target = self opt.configs = self:_generate_build_configs(opt.configs, {sourcekind = "cc"}) |
