diff options
| author | SineStriker <[email protected]> | 2025-04-21 01:24:27 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-04-23 11:30:30 +0800 |
| commit | e16400105330feffae48c766eafc743717436ae1 (patch) | |
| tree | b6f67c23f4c3d26d9623b2b265797ea4a12cdb57 /xmake/rules/utils | |
| parent | 93dda3ce130c3a71a3d8a7bb4776af6e82bcf1c5 (diff) | |
Add `byproduct` API to target
Diffstat (limited to 'xmake/rules/utils')
| -rw-r--r-- | xmake/rules/utils/inherit_links/inherit_links.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/rules/utils/inherit_links/inherit_links.lua b/xmake/rules/utils/inherit_links/inherit_links.lua index 3f56dc46c..74d63495c 100644 --- a/xmake/rules/utils/inherit_links/inherit_links.lua +++ b/xmake/rules/utils/inherit_links/inherit_links.lua @@ -80,8 +80,9 @@ function main(target) end end - if target:has_implib() then - _add_export_value(target, "linkdirs", target:artifactdir("lib")) + local target_implib = target:byproduct("implib") + if target_implib then + _add_export_value(target, "linkdirs", path.directory(target_implib)) else _add_export_value(target, "linkdirs", path.directory(targetfile)) end |
