Skip to content

Commit 0bdc185

Browse files
committed
remove on_load limits
1 parent be2b485 commit 0bdc185

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

xmake/core/package/package.lua

-8
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,6 @@ end
12631263

12641264
-- get the program and name of the given tool kind
12651265
function _instance:tool(toolkind)
1266-
self:_check_limits_on_load("tool")
12671266
if self:toolchains() then
12681267
local cachekey = "package_" .. tostring(self)
12691268
return toolchain.tool(self:toolchains(), toolkind, {cachekey = cachekey, plat = self:plat(), arch = self:arch()})
@@ -1274,7 +1273,6 @@ end
12741273

12751274
-- get tool configuration from the toolchains
12761275
function _instance:toolconfig(name)
1277-
self:_check_limits_on_load("toolconfig")
12781276
if self:toolchains() then
12791277
local cachekey = "package_" .. tostring(self)
12801278
return toolchain.toolconfig(self:toolchains(), name, {cachekey = cachekey, plat = self:plat(), arch = self:arch()})
@@ -1308,7 +1306,6 @@ end
13081306
-- ...
13091307
-- end
13101308
function _instance:has_tool(toolkind, ...)
1311-
self:_check_limits_on_load("has_tool")
13121309
local _, toolname = self:tool(toolkind)
13131310
if toolname then
13141311
for _, v in ipairs(table.join(...)) do
@@ -2439,7 +2436,6 @@ end
24392436
-- @return true or false, errors
24402437
--
24412438
function _instance:has_cfuncs(funcs, opt)
2442-
self:_check_limits_on_load("has_cfuncs")
24432439
opt = opt or {}
24442440
opt.target = self
24452441
opt.configs = self:_generate_build_configs(opt.configs, {sourcekind = "cc"})
@@ -2454,7 +2450,6 @@ end
24542450
-- @return true or false, errors
24552451
--
24562452
function _instance:has_cxxfuncs(funcs, opt)
2457-
self:_check_limits_on_load("has_cxxfuncs")
24582453
opt = opt or {}
24592454
opt.target = self
24602455
opt.configs = self:_generate_build_configs(opt.configs, {sourcekind = "cxx"})
@@ -2469,7 +2464,6 @@ end
24692464
-- @return true or false, errors
24702465
--
24712466
function _instance:has_ctypes(types, opt)
2472-
self:_check_limits_on_load("has_ctypes")
24732467
opt = opt or {}
24742468
opt.target = self
24752469
opt.configs = self:_generate_build_configs(opt.configs, {sourcekind = "cc"})
@@ -2484,7 +2478,6 @@ end
24842478
-- @return true or false, errors
24852479
--
24862480
function _instance:has_cxxtypes(types, opt)
2487-
self:_check_limits_on_load("has_cxxtypes")
24882481
opt = opt or {}
24892482
opt.target = self
24902483
opt.configs = self:_generate_build_configs(opt.configs, {sourcekind = "cxx"})
@@ -2499,7 +2492,6 @@ end
24992492
-- @return true or false, errors
25002493
--
25012494
function _instance:has_cincludes(includes, opt)
2502-
self:_check_limits_on_load("has_cincludes")
25032495
opt = opt or {}
25042496
opt.target = self
25052497
opt.configs = self:_generate_build_configs(opt.configs, {sourcekind = "cc"})

0 commit comments

Comments
 (0)