Skip to content

Commit 153d700

Browse files
committed
Use relative path for custom_build extra inputs.
1 parent acbafb0 commit 153d700

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ninja.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ local function custom_command_build(prj, cfg, filecfg, filename, file_dependenci
475475
commands = commands[1]
476476
end
477477

478-
add_build(cfg, output, outputs, "custom_command", {filename}, filecfg.buildinputs, file_dependencies,
478+
add_build(cfg, output, outputs, "custom_command", {filename}, project.getrelative(prj.workspace, filecfg.buildinputs), file_dependencies,
479479
{"CUSTOM_COMMAND = " .. commands, "CUSTOM_DESCRIPTION = custom build " .. ninja.shesc(output)})
480480
end
481481

0 commit comments

Comments
 (0)