summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/meson.lua
diff options
context:
space:
mode:
authorstar9029 <[email protected]>2025-01-27 16:01:47 +0800
committerstar9029 <[email protected]>2025-01-27 16:01:47 +0800
commitd600433e0064db699511719b63550459e71d4f0c (patch)
tree845350ad694704bde83bbbb34ec42a2e46854d23 /xmake/modules/package/tools/meson.lua
parent897c5ab091733ff963fab2e1f2ce30687cd6d44c (diff)
Fix clang flag
Diffstat (limited to 'xmake/modules/package/tools/meson.lua')
-rw-r--r--xmake/modules/package/tools/meson.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/meson.lua b/xmake/modules/package/tools/meson.lua
index 503092acc..a9876fe6b 100644
--- a/xmake/modules/package/tools/meson.lua
+++ b/xmake/modules/package/tools/meson.lua
@@ -69,7 +69,7 @@ function _translate_flags(package, flags)
if package:is_plat("android") then
local flags_new = {}
for _, flag in ipairs(flags) do
- if flag:startswith("-gcc-toolchain ") or flag:startswith("--target=") or flag:startswith("-isystem ") then
+ if flag:startswith("--gcc-toolchain=") or flag:startswith("--target=") or flag:startswith("-isystem ") then
table.join2(flags_new, flag:split(" ", {limit = 2}))
else
table.insert(flags_new, flag)