diff options
| author | ruki <[email protected]> | 2023-01-04 23:01:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-01-04 23:01:41 +0800 |
| commit | 0ec969792ddf1e9b964c2744f146b53e63f79910 (patch) | |
| tree | c62d6d8add2b2c947ee373a0419b0e4bbd0d53ee /xmake/modules/core/tools/link.lua | |
| parent | d7b98c9c16ca12c25267c43c6b88ba7645fe5476 (diff) | |
improve link for masm32
Diffstat (limited to 'xmake/modules/core/tools/link.lua')
| -rw-r--r-- | xmake/modules/core/tools/link.lua | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/link.lua b/xmake/modules/core/tools/link.lua index b5ee775af..38ce20a83 100644 --- a/xmake/modules/core/tools/link.lua +++ b/xmake/modules/core/tools/link.lua @@ -140,9 +140,14 @@ function link(self, objectfiles, targetkind, targetfile, flags, opt) { function () - -- use vstool to link and enable vs_unicode_output @see https://github.com/xmake-io/xmake/issues/528 + local toolchain = self:toolchain() local program, argv = linkargv(self, objectfiles, targetkind, targetfile, flags, opt) - vstool.runv(program, argv, {envs = self:runenvs()}) + if toolchain and toolchain:name() == "masm32" then + os.iorunv(program, argv, {envs = self:runenvs()}) + else + -- use vstool to link and enable vs_unicode_output @see https://github.com/xmake-io/xmake/issues/528 + vstool.runv(program, argv, {envs = self:runenvs()}) + end end, catch { |
