summaryrefslogtreecommitdiff
path: root/xmake/plugins/pack/batchcmds.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-17 22:35:58 +0800
committerruki <[email protected]>2024-07-17 22:35:58 +0800
commit168053862fba19e9db24ad9d1efa1091a084a8d8 (patch)
tree73e68d4a37aaae749d95ce2e1e265b2d0c658c8a /xmake/plugins/pack/batchcmds.lua
parentdf131f5ad79bc1e1da43ef796ce5e398c101059f (diff)
fix extraconf
Diffstat (limited to 'xmake/plugins/pack/batchcmds.lua')
-rw-r--r--xmake/plugins/pack/batchcmds.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/xmake/plugins/pack/batchcmds.lua b/xmake/plugins/pack/batchcmds.lua
index 767f86d75..c41efb89d 100644
--- a/xmake/plugins/pack/batchcmds.lua
+++ b/xmake/plugins/pack/batchcmds.lua
@@ -116,10 +116,12 @@ function _update_target_install_rpath(target, batchcmds_, opt)
for idx, rpathdirs in ipairs(result) do
local source = sources[idx]
local extraconf = target:extraconf_from("rpathdirs", source)
- for _, rpathdir in ipairs(rpathdirs) do
- local extra = extraconf[rpathdir]
- if extra and extra.installonly then
- batchcmds_:insert_rpath(targetfile, rpathdir, {plat = target:plat(), arch = target:arch()})
+ if extraconf then
+ for _, rpathdir in ipairs(rpathdirs) do
+ local extra = extraconf[rpathdir]
+ if extra and extra.installonly then
+ batchcmds_:insert_rpath(targetfile, rpathdir, {plat = target:plat(), arch = target:arch()})
+ end
end
end
end