diff options
| author | ruki <[email protected]> | 2024-07-17 22:35:58 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-07-17 22:35:58 +0800 |
| commit | 168053862fba19e9db24ad9d1efa1091a084a8d8 (patch) | |
| tree | 73e68d4a37aaae749d95ce2e1e265b2d0c658c8a /xmake/plugins/pack/batchcmds.lua | |
| parent | df131f5ad79bc1e1da43ef796ce5e398c101059f (diff) | |
fix extraconf
Diffstat (limited to 'xmake/plugins/pack/batchcmds.lua')
| -rw-r--r-- | xmake/plugins/pack/batchcmds.lua | 10 |
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 |
