From 447834d2be36ecc810c76e39ed868d1a0c62039d Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 1 Mar 2023 00:46:09 +0800 Subject: fix sysflags --- xmake/core/tool/tool.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/core/tool/tool.lua b/xmake/core/tool/tool.lua index 7dc305980..33c8296a1 100644 --- a/xmake/core/tool/tool.lua +++ b/xmake/core/tool/tool.lua @@ -200,7 +200,7 @@ function _instance:_sysflags(toolkind, flagkind) end end if sourceflags then - for _, flagname in ipairs(sourceflags) do + for _, flagname in ipairs(table.wrap(sourceflags)) do local flags = self:get(flagname) if flags then table.join2(sysflags, flags) -- cgit v1.3.1