Skip to content

Commit

Permalink
Merge pull request #4310 from xqyjlj/makefile-dev
Browse files Browse the repository at this point in the history
🐞 fix(project/cmake/makefile): fix get_program
  • Loading branch information
waruqi authored Oct 21, 2023
2 parents 7a84db2 + f7e1669 commit b83134f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions xmake/plugins/project/make/makefile.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ end
function _get_program_from_target(target, toolkind)
local program = target:get("toolchain." .. toolkind)
if not program then
local tools = target:get("tools") -- TODO: deprecated
if tools then
program = tools[toolkind]
end
program, _ = target:tool(toolkind)
end
return program
end
Expand Down

0 comments on commit b83134f

Please sign in to comment.