diff options
| author | ruki <[email protected]> | 2019-08-03 00:05:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-08-02 18:32:32 +0800 |
| commit | ac311c9a6134f26c5833827a6dc543c47c6cdf23 (patch) | |
| tree | 021f9e9bc044555e54c2439f105eeef830f51329 /xmake/modules/core/tools/link.lua | |
| parent | 98e95eb1293be687836b61713b93d25565fe7606 (diff) | |
show full link command for msvc/link
Diffstat (limited to 'xmake/modules/core/tools/link.lua')
| -rw-r--r-- | xmake/modules/core/tools/link.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/core/tools/link.lua b/xmake/modules/core/tools/link.lua index 715c3e78a..dfeb362c4 100644 --- a/xmake/modules/core/tools/link.lua +++ b/xmake/modules/core/tools/link.lua @@ -90,14 +90,14 @@ function nf_linkdir(self, dir) end -- make the link arguments list -function linkargv(self, objectfiles, targetkind, targetfile, flags) +function linkargv(self, objectfiles, targetkind, targetfile, flags, opt) -- init arguments local argv = table.join(flags, "-out:" .. targetfile, objectfiles) -- too long arguments for windows? local args = os.args(argv) - if #args > 1024 then + if #args > 1024 and not opt.rawargs then local argsfile = os.tmpfile(args) .. ".args.txt" io.writefile(argsfile, args) argv = {"@" .. argsfile} @@ -106,12 +106,12 @@ function linkargv(self, objectfiles, targetkind, targetfile, flags) end -- link the target file -function link(self, objectfiles, targetkind, targetfile, flags) +function link(self, objectfiles, targetkind, targetfile, flags, opt) -- ensure the target directory os.mkdir(path.directory(targetfile)) -- link it - os.runv(linkargv(self, objectfiles, targetkind, targetfile, flags)) + os.runv(linkargv(self, objectfiles, targetkind, targetfile, flags, opt)) end |
