diff options
| author | ruki <[email protected]> | 2024-02-19 22:55:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-02-19 22:55:45 +0800 |
| commit | f4a9a9e3fa36f3f0cf1e655c58bf3fa4d546348b (patch) | |
| tree | 0b42eb09db96cdc6cea528fafecc4e1b274d6d0e /xmake/plugins/project/make/makefile.lua | |
| parent | 7e126bdbcc883f59c43ccc94eb80f2607d612ef0 (diff) | |
improve target_buildcmd
Diffstat (limited to 'xmake/plugins/project/make/makefile.lua')
| -rw-r--r-- | xmake/plugins/project/make/makefile.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/plugins/project/make/makefile.lua b/xmake/plugins/project/make/makefile.lua index 7d462b138..12b1b77e0 100644 --- a/xmake/plugins/project/make/makefile.lua +++ b/xmake/plugins/project/make/makefile.lua @@ -474,8 +474,8 @@ function _add_build_custom_commands_before(makefile, target, sourcegroups, outpu -- add before commands -- we use irpairs(groups), because the last group that should be given the highest priority. local cmds_before = {} - target_cmds.get_target_buildcmd(target, cmds_before, "before") - target_cmds.get_target_buildcmd_sourcegroups(target, cmds_before, sourcegroups, "before") + target_cmds.get_target_buildcmd(target, cmds_before, {suffix = "before"}) + target_cmds.get_target_buildcmd_sourcegroups(target, cmds_before, sourcegroups, {suffix = "before"}) target_cmds.get_target_buildcmd_sourcegroups(target, cmds_before, sourcegroups) local targetname = target:name() @@ -496,8 +496,8 @@ end -- add custom commands after building target function _add_build_custom_commands_after(makefile, target, sourcegroups, outputdir) local cmds_after = {} - target_cmds.get_target_buildcmd_sourcegroups(target, cmds_after, sourcegroups, "after") - target_cmds.get_target_buildcmd(target, cmds_after, "after") + target_cmds.get_target_buildcmd_sourcegroups(target, cmds_after, sourcegroups, {suffix = "after"}) + target_cmds.get_target_buildcmd(target, cmds_after, {suffix = "after"}) if #cmds_after > 0 then for _, cmd in ipairs(cmds_after) do local command = _get_command_string(cmd, outputdir) |
