summaryrefslogtreecommitdiff
path: root/xmake/core/package/component.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/package/component.lua')
-rw-r--r--xmake/core/package/component.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/package/component.lua b/xmake/core/package/component.lua
index c55dc4a73..bdf1ff061 100644
--- a/xmake/core/package/component.lua
+++ b/xmake/core/package/component.lua
@@ -135,7 +135,7 @@ function _instance:_load()
if not loaded then
local script = self:_on_component()
if script then
- local ok, errors = sandbox.load(script, self:package(), self)
+ local ok, errors = sandbox.call(script, self:package(), self)
if not ok then
os.raise("load component(%s) failed, %s", self:name(), errors or "unknown errors")
end