From f7e166938643da67a00f97aacc01068b70e911fa Mon Sep 17 00:00:00 2001 From: xqyjlj Date: Sat, 21 Oct 2023 16:11:55 +0800 Subject: 🐞 fix(project/cmake/makefile): fix get_program MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xmake/plugins/project/make/makefile.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'xmake/plugins/project/make/makefile.lua') diff --git a/xmake/plugins/project/make/makefile.lua b/xmake/plugins/project/make/makefile.lua index 7f2e4f62c..7d2559ea1 100644 --- a/xmake/plugins/project/make/makefile.lua +++ b/xmake/plugins/project/make/makefile.lua @@ -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 -- cgit v1.3.1