diff options
| author | ruki <[email protected]> | 2025-12-03 21:06:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-03 21:06:54 +0800 |
| commit | ae5fa1488354271bd23b883cdceb572c5f11f481 (patch) | |
| tree | 1c045aefb5bcabe873608ca94ae0fd12732c3b87 /xmake/modules/core/tools/cl.lua | |
| parent | 2a04ebccccc367daeed9d8f3b3facaf86d83c8f4 (diff) | |
fix cl flags
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index 0cf33d16b..46ecc9b2b 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -671,7 +671,8 @@ function compargv(self, sourcefile, objectfile, flags, opt) -- if syntax-only, add /Zs and skip -c and -Fo if _is_syntax_check() then table.insert(flags, "/Zs") - return self:program(), (opt and opt.rawargs) and flags or winos.cmdargv(flags, sourcefile) + local argv = table.join(flags, sourcefile) + return self:program(), (opt and opt.rawargs) and argv or winos.cmdargv(argv) end -- suppress clang-cl warnings |
