diff options
| author | ruki <[email protected]> | 2023-10-21 06:14:56 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-21 06:14:56 -0500 |
| commit | b83134f6e6b6ec08c8fa82d1f70b161cb9f7df95 (patch) | |
| tree | b9f443b67a52a2a4cd519f58fa27da3c65666f62 | |
| parent | 7a84db2553338e9e2e6ee50916fc1b847a6901ef (diff) | |
| parent | f7e166938643da67a00f97aacc01068b70e911fa (diff) | |
Merge pull request #4310 from xqyjlj/makefile-dev
🐞 fix(project/cmake/makefile): fix get_program
| -rw-r--r-- | xmake/plugins/project/make/makefile.lua | 5 |
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 |
