diff options
| author | ruki <[email protected]> | 2025-09-09 11:01:03 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-09-09 11:01:03 +0800 |
| commit | 736bc53d54e12a508af4a4bec77049a1929984c7 (patch) | |
| tree | 7059eb396f9e9917c65756084ee53829bcc0c973 | |
| parent | 6c8282ac85fa5ea5e13a14bfedb5943f2db1ea69 (diff) | |
Fix flag wrapping for cxxflags in builder.lua
| -rw-r--r-- | xmake/rules/c++/modules/clang/builder.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) .. '"') |
