Skip to content

Commit

Permalink
Added path pre translation for link rule
Browse files Browse the repository at this point in the history
  • Loading branch information
GamesTrap committed Dec 4, 2023
1 parent 110eaec commit 8fb0379
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ninja.lua
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ local function compilation_rules(cfg, toolset, pch)
p.outln("")
else
p.outln("rule link")
p.outln(" command = " .. link .. " $in" .. ninja.list(ninja.shesc(toolset.getlinks(cfg, true))) .. " /link" .. all_ldflags .. " /nologo /out:$out")
p.outln(" command = " .. link .. " $in" .. ninja.list(ninja.shesc(pretranslatePaths(toolset.getlinks(cfg, true), cfg))) .. " /link" .. all_ldflags .. " /nologo /out:$out")
p.outln(" description = link $out")
p.outln("")
end
Expand Down Expand Up @@ -480,7 +480,7 @@ local function compilation_rules(cfg, toolset, pch)
else
local groups = iif(cfg.linkgroups == premake.ON, {"-Wl,--start-group ", " -Wl,--end-group"}, {"", ""})
p.outln("rule link")
p.outln(" command = " .. link .. " -o $out " .. groups[1] .. "$in" .. ninja.list(ninja.shesc(toolset.getlinks(cfg, true, true))) .. all_ldflags .. groups[2])
p.outln(" command = " .. link .. " -o $out " .. groups[1] .. "$in" .. ninja.list(ninja.shesc(pretranslatePaths(toolset.getlinks(cfg, true, true), cfg))) .. all_ldflags .. groups[2])
p.outln(" description = link $out")
p.outln("")
end
Expand Down

0 comments on commit 8fb0379

Please sign in to comment.