Skip to content

Commit

Permalink
use only self:runtimes()
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthapz committed Apr 6, 2024
1 parent b739f30 commit 15ded53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmake/core/package/package.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15ded53

Please sign in to comment.