Skip to content

Commit

Permalink
Update xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi authored Jul 13, 2024
1 parent 968d080 commit add4bcf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/b/binutils/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,15 @@ package("binutils")
end
elseif package:is_library() then
local libs = {"bfd", "ctf", "opcodes"}
links = {}
local result
for _, lib in ipairs(libs) do
local libinfo = package:find_package("system::" .. lib)
if libinfo then
result = result or {links = {}}
table.insert(result.links, libinfo.links)
end
end
if #links ~= 0 then
return {links = links}
end
return result
end
end
end)
Expand Down

0 comments on commit add4bcf

Please sign in to comment.