From 736bc53d54e12a508af4a4bec77049a1929984c7 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 9 Sep 2025 11:01:03 +0800 Subject: Fix flag wrapping for cxxflags in builder.lua --- xmake/rules/c++/modules/clang/builder.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/rules/c++/modules/clang/builder.lua b/xmake/rules/c++/modules/clang/builder.lua index 2a5b85fc6..a43c8aebe 100644 --- a/xmake/rules/c++/modules/clang/builder.lua +++ b/xmake/rules/c++/modules/clang/builder.lua @@ -217,7 +217,7 @@ function _append_requires_flags(target, module) for _, flag in ipairs(requiresflags) do -- we need to wrap flag to support flag with space if type(flag) == "string" and flag:find(" ", 1, true) and not hide_dependencies then - table.insert(cxxflags, {flag}) + table.insert(cxxflags, {flag}) else if hide_dependencies then table.insert(cxxflags, '"' .. path.unix(flag) .. '"') -- cgit v1.3.1