From ae5fa1488354271bd23b883cdceb572c5f11f481 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 3 Dec 2025 21:06:54 +0800 Subject: fix cl flags --- xmake/modules/core/tools/cl.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.3.1