diff options
| author | ruki <[email protected]> | 2020-03-26 00:27:05 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-03-25 20:42:35 +0800 |
| commit | 0f834ed20d877828b0dd1655b4a24d0505fe5788 (patch) | |
| tree | d358b0c55860eb7e9e5997ad0be64cce31809ccb | |
| parent | 493fffe734e944e153c04bbe46e77c2069581f47 (diff) | |
fix gcc args
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index 7b17a3a10..9cf15ef8c 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -335,7 +335,7 @@ function linkargv(self, objectfiles, targetkind, targetfile, flags, opt) -- too long arguments for windows? if is_host("windows") then opt = opt or {} - local args = os.args(argv) + local args = os.args(argv, {escape = true}) if #args > 1024 and not opt.rawargs then local argsfile = os.tmpfile(args) .. ".args.txt" io.writefile(argsfile, args) |
