summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/make/makefile.lua
diff options
context:
space:
mode:
authorxqyjlj <[email protected]>2023-10-21 16:11:55 +0800
committerxqyjlj <[email protected]>2023-10-21 16:13:28 +0800
commitf7e166938643da67a00f97aacc01068b70e911fa (patch)
treeb9f443b67a52a2a4cd519f58fa27da3c65666f62 /xmake/plugins/project/make/makefile.lua
parent7a84db2553338e9e2e6ee50916fc1b847a6901ef (diff)
🐞 fix(project/cmake/makefile): fix get_program
Diffstat (limited to 'xmake/plugins/project/make/makefile.lua')
-rw-r--r--xmake/plugins/project/make/makefile.lua5
1 files changed, 1 insertions, 4 deletions
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