summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2024-04-06 15:54:13 +0200
committerArthur LAURENT <[email protected]>2024-04-06 15:54:13 +0200
commit15ded5361b44cc6ffa456f64ce079c6e6f6604d9 (patch)
treebc9fc770ef69f606a70f5419cc3b7833469efb98
parentb739f307b9f86ce0c3d4cc41adf079e1d148cf3d (diff)
use only self:runtimes()
-rw-r--r--xmake/core/package/package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 9c57dc1f6..c777d3ec8 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -2271,7 +2271,7 @@ function _instance:_generate_build_configs(configs, opt)
configs = table.join(self:fetch_librarydeps(), configs)
-- since we are ignoring the runtimes of the headeronly library,
-- we can only get the runtimes from the dependency library to detect the link.
- local runtimes = self:config("runtimes") or self:runtimes()
+ local runtimes = self:runtimes()
if self:is_headeronly() and not runtimes and self:librarydeps() then
for _, dep in ipairs(self:librarydeps()) do
if dep:is_plat("windows") and dep:runtimes() then